Author: mckusick Date: Sun Mar 24 22:37:10 2013 New Revision: 248691 URL: http://svnweb.freebsd.org/changeset/base/248691
Log: Note that output is in seconds, not msec. KNF indentation. No functional change. No change to printf strings. No change to casting of printf arguments. Reported by: Bruce Evans Modified: head/sbin/fsck_ffs/fsutil.c Modified: head/sbin/fsck_ffs/fsutil.c ============================================================================== --- head/sbin/fsck_ffs/fsutil.c Sun Mar 24 19:12:08 2013 (r248690) +++ head/sbin/fsck_ffs/fsutil.c Sun Mar 24 22:37:10 2013 (r248691) @@ -507,7 +507,7 @@ static void printIOstats(void) clock_gettime(CLOCK_REALTIME_PRECISE, &finishpass); timespecsub(&finishpass, &startpass); - printf("Running time: %jd.%03ld msec\n", + printf("Running time: %jd.%03ld sec\n", (intmax_t)finishpass.tv_sec, finishpass.tv_nsec / 1000000); printf("buffer reads by type:\n"); for (totalmsec = 0, i = 0; i < BT_NUMBUFTYPES; i++) @@ -518,7 +518,8 @@ static void printIOstats(void) for (i = 0; i < BT_NUMBUFTYPES; i++) { if (readcnt[i] == 0) continue; - msec = readtime[i].tv_sec * 1000 + readtime[i].tv_nsec / 1000000; + msec = + readtime[i].tv_sec * 1000 + readtime[i].tv_nsec / 1000000; printf("%21s:%8ld %2ld.%ld%% %4jd.%03ld sec %2lld.%lld%%\n", buftype[i], readcnt[i], readcnt[i] * 100 / diskreads, (readcnt[i] * 1000 / diskreads) % 10, _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"