diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-20 21:09:09 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-20 21:09:09 +0000 |
commit | b59f1a35ff9de2c6b0250db7fffa469e0a8fa565 (patch) | |
tree | 9c01387b2225eaceb4647080919d9ede4c2394b6 /sbin/sysctl/sysctl.c | |
parent | dabf44a58cb03c4d2c9b0b040187257476160c96 (diff) |
print timedelta; ok dlg
Diffstat (limited to 'sbin/sysctl/sysctl.c')
-rw-r--r-- | sbin/sysctl/sysctl.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index 15dd7953464..7629faff549 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.c,v 1.136 2006/04/18 03:07:44 marco Exp $ */ +/* $OpenBSD: sysctl.c,v 1.137 2006/04/20 21:09:08 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.136 2006/04/18 03:07:44 marco Exp $"; +static const char rcsid[] = "$OpenBSD: sysctl.c,v 1.137 2006/04/20 21:09:08 deraadt Exp $"; #endif #endif /* not lint */ @@ -2191,7 +2191,9 @@ print_sensor(struct sensor *s) } printf("drive %s", name); break; - + case SENSOR_TIMEDELTA: + printf("%.2f secs", s->value / 1000.0); + break; default: printf("unknown"); } |