Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/envstat Fix alignment display for temperature, fans...



details:   https://anonhg.NetBSD.org/src/rev/048e7b2fe0e9
branches:  trunk
changeset: 779221:048e7b2fe0e9
user:      njoly <njoly%NetBSD.org@localhost>
date:      Fri May 11 18:41:12 2012 +0000

description:
Fix alignment display for temperature, fans and integer units.

diffstat:

 usr.sbin/envstat/envstat.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r d1b6de39d51d -r 048e7b2fe0e9 usr.sbin/envstat/envstat.c
--- a/usr.sbin/envstat/envstat.c        Fri May 11 18:07:33 2012 +0000
+++ b/usr.sbin/envstat/envstat.c        Fri May 11 18:41:12 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: envstat.c,v 1.90 2012/02/09 18:10:26 riz Exp $ */
+/* $NetBSD: envstat.c,v 1.91 2012/05/11 18:41:12 njoly Exp $ */
 
 /*-
  * Copyright (c) 2007, 2008 Juan Romero Pardines.
@@ -27,7 +27,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: envstat.c,v 1.90 2012/02/09 18:10:26 riz Exp $");
+__RCSID("$NetBSD: envstat.c,v 1.91 2012/05/11 18:41:12 njoly Exp $");
 #endif /* not lint */
 
 #include <stdio.h>
@@ -854,7 +854,7 @@
                                PRINTTEMP(sensor->warnmin_value);
                                PRINTTEMP(sensor->critmin_value);
                        }
-                       (void)printf("%*s", (int)ilen - 4, stype);
+                       (void)printf("%*s", (int)ilen - 3, stype);
 #undef PRINTTEMP
 
                /* fans */
@@ -900,7 +900,7 @@
 
                        }
 
-                       (void)printf("%*s", (int)ilen - 4, stype);
+                       (void)printf("%*s", (int)ilen - 3, stype);
 
                /* integers */
                } else if (strcmp(sensor->type, "Integer") == 0) {
@@ -954,7 +954,7 @@
                                ilen += 2;
                        }
 
-                       (void)printf("%*s", (int)ilen - 4, stype);
+                       (void)printf("%*s", (int)ilen - 3, stype);
 
 #undef PRINTINT
 #undef PRINTPCT



Home | Main Index | Thread Index | Old Index