mirror of
https://github.com/NixOS/nix
synced 2025-06-25 19:01:16 +02:00
Update src/libutil/util.hh
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
This commit is contained in:
parent
f0b5628eb2
commit
5534682166
1 changed files with 2 additions and 2 deletions
|
@ -139,8 +139,8 @@ N string2IntWithUnitPrefix(std::string_view s)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pretty-print a byte value, e.g. 12433615056 is rendered as `11.6
|
* Pretty-print a byte value, e.g. 12433615056 is rendered as `11.6
|
||||||
* GiB`. If `align` is set, the number will be right-justified
|
* GiB`. If `align` is set, the number will be right-justified by
|
||||||
* (e.g. `__11.6 GiB`).
|
* padding with spaces on the left.
|
||||||
*/
|
*/
|
||||||
std::string renderSize(uint64_t value, bool align = false);
|
std::string renderSize(uint64_t value, bool align = false);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue