This website requires JavaScript.
Explore
Help
Sign in
eelke
/
pgLab
Watch
1
Star
0
Fork
You've already forked pgLab
0
Code
Issues
29
Pull requests
Projects
Releases
1
Packages
Wiki
Activity
Actions
edde131c4b
pgLab
/
pglablib
/
utils
/
HumanReadableBytes.h
7 lines
100 B
C
Raw
Normal View
History
Unescape
Escape
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
#
pragma once
Switch to cmake + vcpkg, builds on linux, windows needs verification. Code has been modified to be portable.
2026-10-17 16:21:22 +02:00
#
include
<cstdint>
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
#
include
<string>
std
:
:
string
HumanReadableBytes
(
uint64_t
bytes
)
;
Reference in a new issue
Copy permalink