| 50 | |
| 51 | |
| 52 | void 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 | |
| 58 | std::string formatReadableSizeWithDecimalSuffix(double value, int precision) |
| 59 | { |
no test coverage detected