From d8c97c7d4206ddd1bf3d1bd630df8b8552e4fd86 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 21 Apr 2010 04:07:14 +0000 Subject: Add the "angle" sensor, measured in degrees; from Luis Pinto --- usr.bin/systat/sensors.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/systat/sensors.c b/usr.bin/systat/sensors.c index f5d1cc630ca..5c5841c82a0 100644 --- a/usr.bin/systat/sensors.c +++ b/usr.bin/systat/sensors.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sensors.c,v 1.21 2010/04/20 20:49:35 deraadt Exp $ */ +/* $OpenBSD: sensors.c,v 1.22 2010/04/21 04:07:13 deraadt Exp $ */ /* * Copyright (c) 2007 Deanna Phillips @@ -270,6 +270,9 @@ showsensor(struct sensinfo *s) case SENSOR_FREQ: tbprintf("%11lld Hz", s->sn_value); break; + case SENSOR_ANGLE: + tbprintf("%10lld deg", s->sn_value); + break; default: tbprintf("%10lld", s->sn_value); break; -- cgit v1.2.3