summaryrefslogtreecommitdiff
path: root/ufs-fsck/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'ufs-fsck/main.c')
-rw-r--r--ufs-fsck/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ufs-fsck/main.c b/ufs-fsck/main.c
index c2656d07..f9a7bd7e 100644
--- a/ufs-fsck/main.c
+++ b/ufs-fsck/main.c
@@ -60,7 +60,7 @@ nice_size (long frags)
u++;
}
- asprintf (&rep, "%#.4g%c", num, *u);
+ asprintf (&rep, num >= 1000 ? "%.0f%c" : "%.3g%c", num, *u);
return rep;
}