Module Name:    src
Committed By:   mlelstv
Date:           Sun Aug  1 15:39:53 UTC 2010

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

Log Message:
Print the correct value for critmin of a fan sensor.


To generate a diff of this commit:
cvs rdiff -u -r1.77 -r1.78 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.77 src/usr.sbin/envstat/envstat.c:1.78
--- src/usr.sbin/envstat/envstat.c:1.77	Mon Feb 15 22:37:14 2010
+++ src/usr.sbin/envstat/envstat.c	Sun Aug  1 15:39:52 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: envstat.c,v 1.77 2010/02/15 22:37:14 pgoyette Exp $ */
+/* $NetBSD: envstat.c,v 1.78 2010/08/01 15:39:52 mlelstv Exp $ */
 
 /*-
  * Copyright (c) 2007, 2008 Juan Romero Pardines.
@@ -27,7 +27,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: envstat.c,v 1.77 2010/02/15 22:37:14 pgoyette Exp $");
+__RCSID("$NetBSD: envstat.c,v 1.78 2010/08/01 15:39:52 mlelstv Exp $");
 #endif /* not lint */
 
 #include <stdio.h>
@@ -895,7 +895,7 @@
 
 				if (sensor->critmin_value) {
 					(void)printf( "%*u ", (int)ilen,
-					    sensor->warnmax_value);
+					    sensor->critmin_value);
 					ilen = 8;
 				} else
 					ilen += 9;

Reply via email to