Date: Tue, 5 Dec 2017 01:54:52 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r326548 - stable/11/usr.sbin/diskinfo Message-ID: <201712050154.vB51sqpN022902@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Tue Dec 5 01:54:52 2017 New Revision: 326548 URL: https://svnweb.freebsd.org/changeset/base/326548 Log: MFC r326288: Fix integer overflow in SLOG test. Modified: stable/11/usr.sbin/diskinfo/diskinfo.c Directory Properties: stable/11/ (props changed) Modified: stable/11/usr.sbin/diskinfo/diskinfo.c ============================================================================== --- stable/11/usr.sbin/diskinfo/diskinfo.c Tue Dec 5 01:47:41 2017 (r326547) +++ stable/11/usr.sbin/diskinfo/diskinfo.c Tue Dec 5 01:54:52 2017 (r326548) @@ -396,7 +396,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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712050154.vB51sqpN022902>