Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/envstat When skipping output for a temperature of a...
details: https://anonhg.NetBSD.org/src/rev/5986598d19bf
branches: trunk
changeset: 759776:5986598d19bf
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Thu Dec 16 14:37:23 2010 +0000
description:
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@
diffstat:
usr.sbin/envstat/envstat.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r f4cf8b8b9b0e -r 5986598d19bf usr.sbin/envstat/envstat.c
--- a/usr.sbin/envstat/envstat.c Thu Dec 16 14:33:30 2010 +0000
+++ b/usr.sbin/envstat/envstat.c Thu Dec 16 14:37:23 2010 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index