mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +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
|
||||
* 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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue