From b9889ede742e3e189356be258d49d67982ac1174 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Fri, 3 May 1996 05:30:56 +0000 Subject: (show_stats): Fiddle with formatting. --- ufs-fsck/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3