Update src/libutil/util.hh

Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
This commit is contained in:
Eelco Dolstra 2024-05-13 10:29:35 +02:00
parent f0b5628eb2
commit 5534682166

View file

@ -139,8 +139,8 @@ N string2IntWithUnitPrefix(std::string_view s)
/**
* Pretty-print a byte value, e.g. 12433615056 is rendered as `11.6
* GiB`. If `align` is set, the number will be right-justified
* (e.g. `__11.6 GiB`).
* GiB`. If `align` is set, the number will be right-justified by
* padding with spaces on the left.
*/
std::string renderSize(uint64_t value, bool align = false);