History log of /openbsd/usr.bin/systat/sensors.c (Results 1 – 25 of 33)
Revision Date Author Comments
# d651af2f 08-Nov-2024 matthieu <matthieu@openbsd.org>

Make CPU frequencies human readable with -h in `systat sensors`.
ok miod@


# e8afce5b 15-Jul-2020 kettenis <kettenis@openbsd.org>

POWE9 CPUs provide an energy sensor that accumulates the emount of energy
used by the processor chip. Although we have a SENSOR_WATTHOUR sensor
type its units are not really suitable for this sensor

POWE9 CPUs provide an energy sensor that accumulates the emount of energy
used by the processor chip. Although we have a SENSOR_WATTHOUR sensor
type its units are not really suitable for this sensor. So add a
SENSOR_ENERGY type that uses micro Joules as its unit.

ok deraadt@

show more ...


# 31d62911 10-Dec-2018 landry <landry@openbsd.org>

Add a velocity sensor type (displayed as m/s)

Change distance sensor type to be displayed as meters with 3 decimals
instead of millimeters.

ok mpi@ kettenis@


# 8f6b3baf 16-Jan-2015 deraadt <deraadt@openbsd.org>

first batch of programs adapting to the namespace cleanup
(pfvar.h nameser.h proc.h ucred.h)
ok guenther millert, and some review from doug as well.


# 7e81aea1 08-Oct-2014 doug <doug@openbsd.org>

userland reallocarray audit.

Replace malloc() and realloc() calls that may have integer overflow in the
multiplication of the size argument with reallocarray().

ok deraadt@


# 42db9c7f 09-Jul-2014 jasper <jasper@openbsd.org>

instead of printf() use tbprintf() like elsewhere in systat.

ok deraadt@ mpi@


# d95200b8 20-Sep-2012 yuo <yuo@openbsd.org>

add more sensor types to sensor framework.
- Pressure (10^-3 Pa)
- distance (10^-6 m)
- acceleration (10^-6 m/s^2)

ok deraadt@ reyk@


# 1c5be208 16-Sep-2011 yuo <yuo@openbsd.org>

reorder SENSOR_* in switch() and add missing cases.

ok deraadt@


# ea99e918 16-Sep-2011 yuo <yuo@openbsd.org>

apply following changes to sensor framework:
- change accuracy of SENSOR_FREQ from Hz to muHz
- add SENSOR_VOLTS_AC entry to userland programs

ok deraadt@


# 596a8091 02-Mar-2011 jasper <jasper@openbsd.org>

- use a common FIELD_ADDR macro, instead of rolling 78 identical copies.

ok canacar@


# 028e7ea2 21-Apr-2010 deraadt <deraadt@openbsd.org>

scale angle by 1000000 to permit min.sec accuracy


# 8e60fd2a 21-Apr-2010 deraadt <deraadt@openbsd.org>

Add the "angle" sensor, measured in degrees; from Luis Pinto


# f7811f45 20-Apr-2010 deraadt <deraadt@openbsd.org>

Get rid of MAXSENSORDEVICES. Gaps in sensordev lists are now handled
by returning ENXIO instead of ENOENT, to essentially indicate hotplug
sensor that has gone away. Accessing beyond the end of the

Get rid of MAXSENSORDEVICES. Gaps in sensordev lists are now handled
by returning ENXIO instead of ENOENT, to essentially indicate hotplug
sensor that has gone away. Accessing beyond the end of the sensordev
list still returns ENOENT, so that you can see there are no further devices.
ok kettenis oga

show more ...


# 0bb7dfba 20-Apr-2010 oga <oga@openbsd.org>

Add "frequency" type for sensors. (and teach userland how to print that
type). Measured in Hz.

ok deraadt@


# 9a3cef4f 15-Apr-2010 yuo <yuo@openbsd.org>

add SENSOR_HUMIDITY to sensor framework to handle humidity values

ok kettenis@ xsa@ sobrado@ krw@ deraadt@


# 0ae663d1 14-Aug-2009 cnst <cnst@openbsd.org>

SENSOR_WATTS; ok canacar deraadt kettenis henning


# 49065c7d 25-Jun-2009 deraadt <deraadt@openbsd.org>

the rule is not to use nitems() in userland yet


# 27d0e24a 25-Jun-2009 okan <okan@openbsd.org>

sync the SENSOR_DRIVE_* names with sysctl(8)'s

ok canacar@


# 7d95cda2 25-Jun-2009 okan <okan@openbsd.org>

use the nitems() macro where appropriate

ok canacar@


# 07fe0f2d 07-Dec-2008 canacar <canacar@openbsd.org>

Warning cleanup including unused variables and shadowed names


# 73baed14 12-Jun-2008 canacar <canacar@openbsd.org>

New display engine for systat, based on pftop. Adds new views for pf
(status, state, rule, queue). While all displays work, some keyboard
comands are not implemented yet. Other features include bette

New display engine for systat, based on pftop. Adds new views for pf
(status, state, rule, queue). While all displays work, some keyboard
comands are not implemented yet. Other features include better handling
of display resize and scrolling for long views. Committing now to fix
the remaining issues in the tree.
Testing and comments by otto@ and harding@, ok deraadt@

show more ...


# 1d6ba6a0 29-Jul-2007 cnst <cnst@openbsd.org>

zap redundant code; ok deanna@


# cfc2f976 23-Mar-2007 ckuethe <ckuethe@openbsd.org>

use the proper abbreviation for second: "s"
requested by deanna, naddy, otto, steven
ok deanna, otto


# f7ff0c41 23-Mar-2007 ckuethe <ckuethe@openbsd.org>

display a timedelta of 0 in seconds, not some other unit.
requested by otto, ok otto


# fee947f3 23-Mar-2007 ckuethe <ckuethe@openbsd.org>

Add a routine to scale timedelta sensors to more meaningful units,
like fmt_scaled(3) does. Ranges from picoseconds to days.

Also removes a couple of unneeded curses operations.

ok deanna, ok deraa

Add a routine to scale timedelta sensors to more meaningful units,
like fmt_scaled(3) does. Ranges from picoseconds to days.

Also removes a couple of unneeded curses operations.

ok deanna, ok deraadt

show more ...


12