diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-04-03 22:32:46 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-04-03 22:32:46 +0000 |
commit | 1aee1d8842576aa2a2cf370f5f5466aa58f17a55 (patch) | |
tree | e6db0f1e9a8b956ac66568c86aa5a2cc0b23fc4f /lib/common/Utils.h | |
parent | 947d4f202bc72ceff341ae4401ecc9ceb06759c7 (diff) |
Make usage output (from bbstoreaccounts info and bbackupquery usage)
consistent and easier to read, with blocks, B/kB/MB/GB, % and an ASCII
bar graph.
Diffstat (limited to 'lib/common/Utils.h')
-rw-r--r-- | lib/common/Utils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/common/Utils.h b/lib/common/Utils.h index d0842b51..78bcbd6b 100644 --- a/lib/common/Utils.h +++ b/lib/common/Utils.h @@ -30,6 +30,9 @@ enum ObjectExists_Dir = 2 }; int ObjectExists(const std::string& rFilename); +std::string HumanReadableSize(int64_t Bytes); +std::string FormatUsageBar(int64_t Blocks, int64_t Bytes, int64_t Max); +std::string FormatUsageLineStart(const std::string& rName); #include "MemLeakFindOff.h" |