0
0
Fork 0
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:
Jason Volk 2019-10-07 17:41:06 -07:00
parent b72eb83320
commit ccaf730ce1

View file

@ -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)