summaryrefslogtreecommitdiff
path: root/ufs-fsck
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-05-03 05:30:56 +0000
committerMiles Bader <miles@gnu.org>1996-05-03 05:30:56 +0000
commitb9889ede742e3e189356be258d49d67982ac1174 (patch)
treefd74dd58273293fc8fdd9391ee1607f59eccd034 /ufs-fsck
parentfe9aaf1be759dee1441046cb7ddcab7862c16a53 (diff)
(show_stats): Fiddle with formatting.
Diffstat (limited to 'ufs-fsck')
-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;
}