diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-04-21 19:41:00 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-04-21 19:41:00 +0000 |
commit | 732cfb4dd932c051af555740a5cc5412588e1d67 (patch) | |
tree | 1a3b654489a1a9238227c4178824016f89089272 /sbin/sysctl/sysctl.c | |
parent | 8ce41e9fda91d29fefdeec97863a9f8ddaca36a2 (diff) |
scale angle by 1000000 to permit min.sec accuracy
Diffstat (limited to 'sbin/sysctl/sysctl.c')
-rw-r--r-- | sbin/sysctl/sysctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index 4eb955a7e55..96d0f80f256 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.c,v 1.171 2010/04/21 04:07:13 deraadt Exp $ */ +/* $OpenBSD: sysctl.c,v 1.172 2010/04/21 19:40:59 deraadt Exp $ */ /* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */ /* @@ -2480,7 +2480,7 @@ print_sensor(struct sensor *s) printf("%lld Hz", s->value); break; case SENSOR_ANGLE: - printf("%lld deg", s->value); + printf("%3.4f degrees", s->value / 1000000.0); break; default: printf("unknown"); |