summaryrefslogtreecommitdiff
path: root/sbin/sysctl/sysctl.c
diff options
context:
space:
mode:
authorMarc Balmer <mbalmer@cvs.openbsd.org>2006-12-26 11:52:31 +0000
committerMarc Balmer <mbalmer@cvs.openbsd.org>2006-12-26 11:52:31 +0000
commitf829c1218ea609470706a6a1d6e24571dcd73451 (patch)
treec4f3f04919cb3a2ea22c5712e628c46b55d2ef72 /sbin/sysctl/sysctl.c
parent7bf53a438d4ee8d27e6d38502c394dddd284c05e (diff)
Show more digits in timedelta sensor output as the timedelta sensors become
increasingly more precise. ok deraadt
Diffstat (limited to 'sbin/sysctl/sysctl.c')
-rw-r--r--sbin/sysctl/sysctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c
index d7b8d87c82c..d219bc1b8b9 100644
--- a/sbin/sysctl/sysctl.c
+++ b/sbin/sysctl/sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysctl.c,v 1.143 2006/12/23 17:49:53 deraadt Exp $ */
+/* $OpenBSD: sysctl.c,v 1.144 2006/12/26 11:52:30 mbalmer 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.143 2006/12/23 17:49:53 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: sysctl.c,v 1.144 2006/12/26 11:52:30 mbalmer Exp $";
#endif
#endif /* not lint */
@@ -2322,7 +2322,7 @@ print_sensor(struct sensor *s)
printf(name);
break;
case SENSOR_TIMEDELTA:
- printf("%.2f secs", s->value / 1000000000.0);
+ printf("%.6f secs", s->value / 1000000000.0);
break;
default:
printf("unknown");