MCPcopy Create free account
hub / github.com/ByConity/ByConity / formatReadableSizeWithDecimalSuffix

Function formatReadableSizeWithDecimalSuffix

src/Common/formatReadable.cpp:52–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51
52void formatReadableSizeWithDecimalSuffix(double value, DB::WriteBuffer & out, int precision)
53{
54 const char * units[] = {" B", " KB", " MB", " GB", " TB", " PB", " EB", " ZB", " YB"};
55 formatReadable(value, out, precision, units, sizeof(units) / sizeof(units[0]), 1000);
56}
57
58std::string formatReadableSizeWithDecimalSuffix(double value, int precision)
59{

Callers 6

tryProcessTableMethod · 0.85
writeFinalProgressMethod · 0.85
writeProgressMethod · 0.85
toDebugStringMethod · 0.85
checkCanBeDroppedMethod · 0.85
formatMethod · 0.85

Calls 2

formatReadableFunction · 0.85
strMethod · 0.45

Tested by

no test coverage detected