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 /usr.bin/systat/sensors.c | |
parent | 8ce41e9fda91d29fefdeec97863a9f8ddaca36a2 (diff) |
scale angle by 1000000 to permit min.sec accuracy
Diffstat (limited to 'usr.bin/systat/sensors.c')
-rw-r--r-- | usr.bin/systat/sensors.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/systat/sensors.c b/usr.bin/systat/sensors.c index 5c5841c82a0..2472b8a708e 100644 --- a/usr.bin/systat/sensors.c +++ b/usr.bin/systat/sensors.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sensors.c,v 1.22 2010/04/21 04:07:13 deraadt Exp $ */ +/* $OpenBSD: sensors.c,v 1.23 2010/04/21 19:40:59 deraadt Exp $ */ /* * Copyright (c) 2007 Deanna Phillips <deanna@openbsd.org> @@ -271,7 +271,7 @@ showsensor(struct sensinfo *s) tbprintf("%11lld Hz", s->sn_value); break; case SENSOR_ANGLE: - tbprintf("%10lld deg", s->sn_value); + tbprintf("%3.4f degrees", s->sn_value / 1000000.0); break; default: tbprintf("%10lld", s->sn_value); |