diff options
| author | Dan Engelbrecht <[email protected]> | 2022-12-07 11:36:54 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-12-07 02:36:54 -0800 |
| commit | cce239c1d535e047d412ec2ad5ed28ff30d5c955 (patch) | |
| tree | 59dc18c2c6860d40277f8067e7de6e2e73b003d7 /zen/cmds/hash.cpp | |
| parent | optimizations (#200) (diff) | |
| download | archived-zen-cce239c1d535e047d412ec2ad5ed28ff30d5c955.tar.xz archived-zen-cce239c1d535e047d412ec2ad5ed28ff30d5c955.zip | |
Zen cmd fixes (#201)
* updated drop command to support namespaces
* fixed hash command error message
* fix output of status (and top) command
* Use ZEN_CONSOLE for output in zen commands
* changelog
Diffstat (limited to 'zen/cmds/hash.cpp')
| -rw-r--r-- | zen/cmds/hash.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/zen/cmds/hash.cpp b/zen/cmds/hash.cpp index 59dea5a5d..95f960e29 100644 --- a/zen/cmds/hash.cpp +++ b/zen/cmds/hash.cpp @@ -70,11 +70,11 @@ HashCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv) bool valid = m_ScanDirectory.length(); if (!valid) - throw cxxopts::OptionParseException("Chunk command requires a directory to scan"); + throw cxxopts::OptionParseException("Hash command requires a directory to scan"); // Gather list of files to process - ZEN_INFO("Gathering files from {}", m_ScanDirectory); + ZEN_CONSOLE("Gathering files from {}", m_ScanDirectory); struct FileEntry { @@ -96,7 +96,7 @@ HashCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv) } } - ZEN_INFO("Gathered {} files, total size {}", FileList.size(), zen::NiceBytes(FileBytes)); + ZEN_CONSOLE("Gathered {} files, total size {}", FileList.size(), zen::NiceBytes(FileBytes)); Concurrency::combinable<uint64_t> TotalBytes; @@ -129,8 +129,8 @@ HashCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv) TotalBytes.combine_each([&](size_t Total) { TotalByteCount += Total; }); const uint64_t ElapsedMs = Timer.GetElapsedTimeMs(); - ZEN_INFO("Scanned {} files in {}", FileList.size(), zen::NiceTimeSpanMs(ElapsedMs)); - ZEN_INFO("Total bytes {} ({})", zen::NiceBytes(TotalByteCount), zen::NiceByteRate(TotalByteCount, ElapsedMs)); + ZEN_CONSOLE("Scanned {} files in {}", FileList.size(), zen::NiceTimeSpanMs(ElapsedMs)); + ZEN_CONSOLE("Total bytes {} ({})", zen::NiceBytes(TotalByteCount), zen::NiceByteRate(TotalByteCount, ElapsedMs)); InternalFile Output; |