mirror of
https://github.com/matrix-construct/construct
synced 2025-02-17 01:00:10 +01:00
modules/console: Detect bytes for pretty(iec()) in db ticker output.
This commit is contained in:
parent
b72eb83320
commit
ccaf730ce1
1 changed files with 8 additions and 3 deletions
|
@ -2929,9 +2929,14 @@ try
|
|||
if(val == 0 && ticker != "-a")
|
||||
continue;
|
||||
|
||||
out << std::left << std::setw(48) << std::setfill('_') << name
|
||||
<< " " << val
|
||||
<< std::endl;
|
||||
char buf[48];
|
||||
out << std::left << std::setw(48) << std::setfill('_') << name << " ";
|
||||
if(has(name, ".bytes"))
|
||||
out << pretty(buf, iec(val));
|
||||
else
|
||||
out << val;
|
||||
|
||||
out << std::endl;
|
||||
}
|
||||
|
||||
for(uint32_t i(0); i < db::histogram_max; ++i)
|
||||
|
|
Loading…
Add table
Reference in a new issue