diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-25 04:37:02 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-25 04:37:02 +0000 |
commit | 6e65b40d37d1a27e09a605bd2f1c7021d045a418 (patch) | |
tree | be124d42725c1db77814ea172663ea83d2a63946 /sbin | |
parent | ff5e81fe32caab5ab27fc633a8ea69e83af1c4a9 (diff) |
for SENSOR_TIMEDELTA, store time in nanoseconds. discussion with kettenis
mbalmer will have to cope.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/sysctl/sysctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index 66cbe9a4be9..689001d4de9 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.c,v 1.138 2006/04/25 03:14:46 deraadt Exp $ */ +/* $OpenBSD: sysctl.c,v 1.139 2006/04/25 04:37:01 deraadt Exp $ */ /* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */ /* @@ -40,7 +40,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)sysctl.c 8.5 (Berkeley) 5/9/95"; #else -static const char rcsid[] = "$OpenBSD: sysctl.c,v 1.138 2006/04/25 03:14:46 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: sysctl.c,v 1.139 2006/04/25 04:37:01 deraadt Exp $"; #endif #endif /* not lint */ @@ -2192,7 +2192,7 @@ print_sensor(struct sensor *s) printf("drive %s", name); break; case SENSOR_TIMEDELTA: - printf("%.2f secs", s->value / 1000.0); + printf("%.2f secs", s->value / 1000000000.0); break; default: printf("unknown"); |