diff options
author | Jan Fajerski <jfajerski@suse.com> | 2017-11-21 18:34:28 +0100 |
---|---|---|
committer | Jan Fajerski <jfajerski@suse.com> | 2018-04-03 09:23:24 +0200 |
commit | d3cecebacdcebcf475808a6204de22dfa94d729d (patch) | |
tree | c19cf6065e1dafb007c38227e6bde6645468af4f /src/ceph_mon.cc | |
parent | Merge PR #20855 into master (diff) | |
download | ceph-d3cecebacdcebcf475808a6204de22dfa94d729d.tar.xz ceph-d3cecebacdcebcf475808a6204de22dfa94d729d.zip |
include/types: format decimal numbers with decimal factor
Until now bytes and objects were formatted using si_t which used 1024 as
the factor to pretty print large numbers. For object counts a factor of
1000 is preferred. This commit retires the si_t formatting (as well as
prettybyte_t, kb_t and pretty_si_t) completely and adds structs and
formatting for binary and decimal units, bin_u_t and dec_u_t respectively.
Fixes: http://tracker.ceph.com/issues/22095
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
Diffstat (limited to 'src/ceph_mon.cc')
-rw-r--r-- | src/ceph_mon.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ceph_mon.cc b/src/ceph_mon.cc index f3bbc6dc8c2..48d4f6e87aa 100644 --- a/src/ceph_mon.cc +++ b/src/ceph_mon.cc @@ -477,7 +477,7 @@ int main(int argc, const char **argv) if (stats.avail_percent <= g_conf->mon_data_avail_crit) { derr << "error: monitor data filesystem reached concerning levels of" << " available storage space (available: " - << stats.avail_percent << "% " << prettybyte_t(stats.byte_avail) + << stats.avail_percent << "% " << byte_u_t(stats.byte_avail) << ")\nyou may adjust 'mon data avail crit' to a lower value" << " to make this go away (default: " << g_conf->mon_data_avail_crit << "%)\n" << dendl; |