[lvm-devel] master - libdm: fix display of nsec suffixes in histogram strings
Bryn Reeves
bmr at fedoraproject.org
Mon Sep 7 19:15:03 UTC 2015
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=daa94eb792ee76a507dcafe74c5ceda9707a370f
Commit: daa94eb792ee76a507dcafe74c5ceda9707a370f
Parent: 5f990473e46b97e4642744798429c02f7ddc0763
Author: Bryn M. Reeves <bmr at redhat.com>
AuthorDate: Mon Sep 7 20:11:28 2015 +0100
Committer: Bryn M. Reeves <bmr at redhat.com>
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(-)
diff --git a/libdm/libdm-stats.c b/libdm/libdm-stats.c
index 4e5210d..f239f01 100644
--- a/libdm/libdm-stats.c
+++ b/libdm/libdm-stats.c
@@ -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";
More information about the lvm-devel
mailing list