diff --git a/lib/libzfs/libzfs_util.c b/lib/libzfs/libzfs_util.c index 66ec8a2dfe..6d7d78a5f0 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; } }