master - libdm: fix display of nsec suffixes in histogram strings
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=daa94eb792ee76a507dcafe74c5ceda9707a370f Commit: daa94eb792ee76a507dcafe74c5ceda9707a370f Parent: 5f990473e46b97e4642744798429c02f7ddc0763 Author: Bryn M. Reeves <[email protected]> AuthorDate: Mon Sep 7 20:11:28 2015 +0100 Committer: Bryn M. Reeves <[email protected]> CommitterDate: Mon Sep 7 20:14:53 2015 +0100
libdm: fix display of nsec suffixes in histogram strings
--- libdm/libdm-stats.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
libdm/libdm-stats.c +1 -0
@@ -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" ;