diff options
Diffstat (limited to 'sinksh')
-rw-r--r-- | sinksh/syntax_modules/sink_clear.cpp | 2 | ||||
-rw-r--r-- | sinksh/syntax_modules/sink_drop.cpp | 3 | ||||
-rw-r--r-- | sinksh/syntax_modules/sink_inspect.cpp | 4 |
3 files changed, 4 insertions, 5 deletions
diff --git a/sinksh/syntax_modules/sink_clear.cpp b/sinksh/syntax_modules/sink_clear.cpp index 4184fdd..e676dd6 100644 --- a/sinksh/syntax_modules/sink_clear.cpp +++ b/sinksh/syntax_modules/sink_clear.cpp | |||
@@ -43,7 +43,7 @@ bool clear(const QStringList &args, State &state) | |||
43 | } | 43 | } |
44 | for (const auto &resource : args) { | 44 | for (const auto &resource : args) { |
45 | state.print(QObject::tr("Removing local cache for '%1' ...").arg(resource)); | 45 | state.print(QObject::tr("Removing local cache for '%1' ...").arg(resource)); |
46 | Sink::Store::removeDataFromDisk(resource.toLatin1()).exec().waitForFinished(); | 46 | Sink::Store::removeDataFromDisk(SinkshUtils::parseUid(resource.toLatin1())).exec().waitForFinished(); |
47 | state.printLine(QObject::tr("done")); | 47 | state.printLine(QObject::tr("done")); |
48 | } | 48 | } |
49 | 49 | ||
diff --git a/sinksh/syntax_modules/sink_drop.cpp b/sinksh/syntax_modules/sink_drop.cpp index ce468de..3b9a817 100644 --- a/sinksh/syntax_modules/sink_drop.cpp +++ b/sinksh/syntax_modules/sink_drop.cpp | |||
@@ -44,8 +44,7 @@ bool drop(const QStringList &args, State &state) | |||
44 | 44 | ||
45 | auto argList = args; | 45 | auto argList = args; |
46 | auto resource = argList.takeFirst(); | 46 | auto resource = argList.takeFirst(); |
47 | 47 | QDirIterator it(Sink::storageLocation(), QStringList() << SinkshUtils::parseUid(resource.toLatin1()) + "*", QDir::Dirs); | |
48 | QDirIterator it(Sink::storageLocation(), QStringList() << resource + "*", QDir::Dirs); | ||
49 | while (it.hasNext()) { | 48 | while (it.hasNext()) { |
50 | auto path = it.next(); | 49 | auto path = it.next(); |
51 | QDir dir(path); | 50 | QDir dir(path); |
diff --git a/sinksh/syntax_modules/sink_inspect.cpp b/sinksh/syntax_modules/sink_inspect.cpp index 17cf2d5..f75b59f 100644 --- a/sinksh/syntax_modules/sink_inspect.cpp +++ b/sinksh/syntax_modules/sink_inspect.cpp | |||
@@ -192,8 +192,8 @@ bool inspect(const QStringList &args, State &state) | |||
192 | findSubstringKeys); | 192 | findSubstringKeys); |
193 | 193 | ||
194 | state.printLine("Found " + QString::number(count) + " entries"); | 194 | state.printLine("Found " + QString::number(count) + " entries"); |
195 | state.printLine("Keys take up " + QString::number(keySizeTotal) + " bytes"); | 195 | state.printLine("Keys take up " + QString::number(keySizeTotal) + " bytes => " + QString::number(keySizeTotal/1024) + " kb"); |
196 | state.printLine("Values take up " + QString::number(valueSizeTotal) + " bytes"); | 196 | state.printLine("Values take up " + QString::number(valueSizeTotal) + " bytes => " + QString::number(valueSizeTotal/1024) + " kb"); |
197 | } | 197 | } |
198 | return false; | 198 | return false; |
199 | } | 199 | } |