diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-02-10 21:44:14 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-02-10 21:52:09 +0100 |
commit | 13a0c1b05a4b175f13decf3b15567dc71ea043ac (patch) | |
tree | e7d551fd43f69d828c58eb2b9e6d74254bafff10 /include/common.h | |
parent | 060970feee2beea37e837e0a2d557e878e5f8290 (diff) |
Cleanup statistics print out
- Give a rounded input/output byte count.
- Seperate groups by new lines.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index a3055dc..0fd349a 100644 --- a/include/common.h +++ b/include/common.h @@ -162,4 +162,6 @@ sqfs_compressor_t *lzo_compressor_create(const sqfs_compressor_config_t *cfg); int parse_size(const char *what, size_t *out, const char *str, size_t reference); +void print_size(sqfs_u64 size, char *buffer, bool round_to_int); + #endif /* COMMON_H */ |