mirror of
https://github.com/NixOS/nix
synced 2025-06-27 00:11:17 +02:00
Make large path warnings human-readable
This commit is contained in:
parent
5314430437
commit
cf3b044b7e
4 changed files with 8 additions and 7 deletions
|
@ -139,9 +139,10 @@ N string2IntWithUnitPrefix(std::string_view s)
|
|||
|
||||
/**
|
||||
* Pretty-print a byte value, e.g. 12433615056 is rendered as `11.6
|
||||
* GiB`.
|
||||
* GiB`. If `align` is set, the number will be right-justified
|
||||
* (e.g. `__11.6 GiB`).
|
||||
*/
|
||||
std::string renderSize(uint64_t value);
|
||||
std::string renderSize(uint64_t value, bool align = false);
|
||||
|
||||
/**
|
||||
* Parse a string into a float.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue