pgLab/pglablib/utils/HumanReadableBytes.h
eelke 5bdd3fa95d Improve conversion of bytes to human readable string
Fixes issues like showing 0 MiB when the value is just slightly less then 1 MiB.
2024-04-12 13:26:10 +02:00

5 lines
81 B
C++

#pragma once
#include <string>
std::string HumanReadableBytes(uint64_t bytes);