diff options
author | 2005-06-03 12:31:28 +0000 | |
---|---|---|
committer | 2005-06-03 12:31:28 +0000 | |
commit | 97bfd6475efa6edb2f3255e9bbaebceb3ba3ede4 (patch) | |
tree | e68eb3cb05a83b50c71117a1dc7989a8fdb3adc5 | |
parent | reties -> retries (diff) | |
download | wireguard-openbsd-97bfd6475efa6edb2f3255e9bbaebceb3ba3ede4.tar.xz wireguard-openbsd-97bfd6475efa6edb2f3255e9bbaebceb3ba3ede4.zip |
print negative values correctly; From: serge rasnikov <747500@gmail.com>
-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; |