From 31c6d7311e5647a878ee17e1009270e150944e28 Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Mon, 27 Nov 2017 20:01:43 +0000 Subject: [PATCH] Fix integer overflow in SLOG test. MFC after: 1 week --- usr.sbin/diskinfo/diskinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/diskinfo/diskinfo.c b/usr.sbin/diskinfo/diskinfo.c index f89e9e3d20c0..a6769621b61a 100644 --- a/usr.sbin/diskinfo/diskinfo.c +++ b/usr.sbin/diskinfo/diskinfo.c @@ -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