Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/iostat Put space after comma and around binary oper...



details:   https://anonhg.NetBSD.org/src/rev/3a1905a9c19b
branches:  trunk
changeset: 762037:3a1905a9c19b
user:      enami <enami%NetBSD.org@localhost>
date:      Mon Feb 14 02:42:26 2011 +0000

description:
Put space after comma and around binary operator.

diffstat:

 usr.sbin/iostat/iostat.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 7607906aa3d2 -r 3a1905a9c19b usr.sbin/iostat/iostat.c
--- a/usr.sbin/iostat/iostat.c  Sun Feb 13 23:58:40 2011 +0000
+++ b/usr.sbin/iostat/iostat.c  Mon Feb 14 02:42:26 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iostat.c,v 1.57 2011/01/09 03:35:23 jakllsch Exp $     */
+/*     $NetBSD: iostat.c,v 1.58 2011/02/14 02:42:26 enami Exp $        */
 
 /*
  * Copyright (c) 1996 John M. Vinopal
@@ -71,7 +71,7 @@
 #if 0
 static char sccsid[] = "@(#)iostat.c   8.3 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: iostat.c,v 1.57 2011/01/09 03:35:23 jakllsch Exp $");
+__RCSID("$NetBSD: iostat.c,v 1.58 2011/02/14 02:42:26 enami Exp $");
 #endif
 #endif /* not lint */
 
@@ -327,7 +327,7 @@
                else
                        mbps = 0.0;
                (void)printf(" %5.*f",
-                   MAX(0,3-(int)floor(log10(fabs(fmax(1.0,mbps))))), mbps);
+                   MAX(0, 3 - (int)floor(log10(fabs(fmax(1.0, mbps))))), mbps);
 
                                        /* average transfers per second. */
                (void)printf(" %4.0f",
@@ -345,7 +345,7 @@
                        mbps = 0;
                mbps /= etime;
                (void)printf(" %5.*f ",
-                   MAX(0,3-(int)floor(log10(fabs(fmax(1.0,mbps))))), mbps);
+                   MAX(0, 3 - (int)floor(log10(fabs(fmax(1.0, mbps))))), mbps);
        }
 }
 



Home | Main Index | Thread Index | Old Index