Index | Thread | Search

From:
"Theo de Raadt" <deraadt@openbsd.org>
Subject:
Re: sysctl cpu hz
To:
"Ted Unangst" <tedu@tedunangst.com>
Cc:
tech@openbsd.org
Date:
Fri, 25 Apr 2025 15:30:04 -0600

Download raw body.

Thread
Ted Unangst <tedu@tedunangst.com> wrote:

> My CPU is too fast and I have trouble counting the zeros in sysctl hw.sensors.
> 
> For a frequency sensor greater than 10 MHz, display in Mhz instead.
> Keep the old format when using -n, in case somebody scripted this.
> 
> hw.sensors.cpu0.frequency0=650.00 MHz
> hw.sensors.cpu2.frequency0=700.00 MHz
> hw.sensors.cpu4.frequency0=650.00 MHz

I suspect looking at the leading digit tells you the whole story.