mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
libdm: fix display of nsec suffixes in histogram strings
This commit is contained in:
parent
5f990473e4
commit
daa94eb792
@ -2148,6 +2148,7 @@ void dm_histogram_bounds_destroy(struct dm_histogram *bounds)
|
||||
*/
|
||||
static void _scale_bound_value_to_suffix(uint64_t *bound, const char **suffix)
|
||||
{
|
||||
*suffix = "ns";
|
||||
if (!(*bound % NSEC_PER_SEC)) {
|
||||
*bound /= NSEC_PER_SEC;
|
||||
*suffix = "s";
|
||||
|
Loading…
Reference in New Issue
Block a user