diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-06-03 12:31:29 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-06-03 12:31:29 +0000 |
commit | ed3564c0b92a67535c184e2637dbbacc572e401a (patch) | |
tree | 41f782b16c57059048d941aa33100614347d4898 /usr.sbin | |
parent | 054924b9e767f2d8bdd0739c3a863a03e0aa7ac6 (diff) |
print negative values correctly; From: serge rasnikov <747500@gmail.com>
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/sensorsd/sensorsd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/sensorsd/sensorsd.c b/usr.sbin/sensorsd/sensorsd.c index 841e24f0eb7..1aabc1a8efa 100644 --- a/usr.sbin/sensorsd/sensorsd.c +++ b/usr.sbin/sensorsd/sensorsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sensorsd.c,v 1.15 2005/04/21 00:22:28 deraadt Exp $ */ +/* $OpenBSD: sensorsd.c,v 1.16 2005/06/03 12:31:28 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -39,7 +39,7 @@ int main(int, char *[]); void check_sensors(void); void report(time_t); -static char *print_sensor(enum sensor_type, u_int64_t); +static char *print_sensor(enum sensor_type, int64_t); int parse_config(char *); int64_t get_val(char *, int, enum sensor_type); void reparse_cfg(int); @@ -293,7 +293,7 @@ report(time_t last_report) } static char * -print_sensor(enum sensor_type type, u_int64_t value) +print_sensor(enum sensor_type type, int64_t value) { static char rfbuf[RFBUFCNT][RFBUFSIZ]; /* ring buffer */ static int idx; |