Module Name:    src
Committed By:   pgoyette
Date:           Thu Dec 16 14:37:23 UTC 2010

Modified Files:
        src/usr.sbin/envstat: envstat.c

Log Message:
When skipping output for a temperature of absolute zero, don't forget to
skip past the display columns that the value would otherwise occupy.

Fixes display issue when swsensor(4) is used and it has a value of 0K,
as reported by njoly@


To generate a diff of this commit:
cvs rdiff -u -r1.84 -r1.85 src/usr.sbin/envstat/envstat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/envstat/envstat.c
diff -u src/usr.sbin/envstat/envstat.c:1.84 src/usr.sbin/envstat/envstat.c:1.85
--- src/usr.sbin/envstat/envstat.c:1.84	Tue Dec 14 08:04:14 2010
+++ src/usr.sbin/envstat/envstat.c	Thu Dec 16 14:37:23 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: envstat.c,v 1.84 2010/12/14 08:04:14 pooka Exp $ */
+/* $NetBSD: envstat.c,v 1.85 2010/12/16 14:37:23 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2007, 2008 Juan Romero Pardines.
@@ -27,7 +27,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: envstat.c,v 1.84 2010/12/14 08:04:14 pooka Exp $");
+__RCSID("$NetBSD: envstat.c,v 1.85 2010/12/16 14:37:23 pgoyette Exp $");
 #endif /* not lint */
 
 #include <stdio.h>
@@ -852,7 +852,6 @@
 			PRINTTEMP(sensor->cur_value);
 			stype = degrees;
 
-			ilen = 8;
 			if (statistics) {
 				/* show statistics if flag set */
 				PRINTTEMP(stats->max);

Reply via email to