From cfd9e9936f93181439d6b5a0f9f2466308f23ccf Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 31 Jul 2009 13:50:21 -0700 Subject: [PATCH] Fix an accidentally introduced formatting issue in zfs output. Because the local 'index' variable shadows the index() function it was replaced by 'i'. Unfortunately when I made this change I accidentally replaced one instance with 'j' resulting in the short decimal values being printed incorrectly. --- lib/libzfs/libzfs_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libzfs/libzfs_util.c b/lib/libzfs/libzfs_util.c index da409e389a..72b635054f 100644 --- a/lib/libzfs/libzfs_util.c +++ b/lib/libzfs/libzfs_util.c @@ -551,7 +551,7 @@ zfs_nicenum(uint64_t num, char *buf, size_t buflen) */ for (j = 2; j >= 0; j--) { if (snprintf(buf, buflen, "%.*f%c", j, - (double)num / (1ULL << 10 * j), u) <= 5) + (double)num / (1ULL << 10 * i), u) <= 5) break; } }