svn commit: r326288 - head/usr.sbin/diskinfo
Alexander Motin
mav at FreeBSD.org
Mon Nov 27 20:01:45 UTC 2017
Author: mav
Date: Mon Nov 27 20:01:43 2017
New Revision: 326288
URL: https://svnweb.freebsd.org/changeset/base/326288
Log:
Fix integer overflow in SLOG test.
MFC after: 1 week
Modified:
head/usr.sbin/diskinfo/diskinfo.c
Modified: head/usr.sbin/diskinfo/diskinfo.c
==============================================================================
--- head/usr.sbin/diskinfo/diskinfo.c Mon Nov 27 19:35:21 2017 (r326287)
+++ head/usr.sbin/diskinfo/diskinfo.c Mon Nov 27 20:01:43 2017 (r326288)
@@ -398,7 +398,7 @@ TS(u_int size, int count)
dt = delta_t();
printf("%8.1f usec/IO = %8.1f Mbytes/s\n",
- dt * 1000000.0 / count, size * count / dt / (1024 * 1024));
+ dt * 1000000.0 / count, (double)size * count / dt / (1024 * 1024));
}
static void
More information about the svn-src-head
mailing list