diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2010-01-31 18:17:50 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2010-01-31 18:17:50 +0200 |
commit | 96a4f840e3b9ca5c81e5711ff9c267b194f93ef1 (patch) | |
tree | 3537787a03d694748415c014bcdf718753f59b0b /src/xz/util.h | |
parent | Don't use uninitialized sigset_t. (diff) | |
download | xz-96a4f840e3b9ca5c81e5711ff9c267b194f93ef1.tar.xz |
Improve displaying of the memory usage limit.
Diffstat (limited to '')
-rw-r--r-- | src/xz/util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xz/util.h b/src/xz/util.h index 67bf3075..2e08b4a8 100644 --- a/src/xz/util.h +++ b/src/xz/util.h @@ -41,6 +41,12 @@ extern uint64_t str_to_uint64(const char *name, const char *value, uint64_t min, uint64_t max); +/// \brief Round an integer up to the next full MiB and convert to MiB +/// +/// This is used when printing memory usage and limit. +extern uint64_t round_up_to_mib(uint64_t n); + + /// \brief Convert uint64_t to a string /// /// Convert the given value to a string with locale-specific thousand |