From 732cfb4dd932c051af555740a5cc5412588e1d67 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 21 Apr 2010 19:41:00 +0000 Subject: scale angle by 1000000 to permit min.sec accuracy --- sbin/sysctl/sysctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/sysctl/sysctl.c') 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"); -- cgit v1.2.3