Skip to content

Commit

Permalink
update cpu_freq() doc
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Apr 9, 2023
1 parent 55b7ca0 commit 52fe551
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -268,13 +268,13 @@ CPU
.. function:: cpu_freq(percpu=False)

Return CPU frequency as a named tuple including *current*, *min* and *max*
frequencies expressed in Mhz.
On Linux *current* frequency reports the real-time value, on all other
platforms this usually represents the nominal "fixed" value (never changing).
If *percpu* is ``True`` and the system supports per-cpu frequency
retrieval (Linux only) a list of frequencies is returned for each CPU,
if not, a list with a single element is returned.
If *min* and *max* cannot be determined they are set to ``0.0``.
frequencies expressed in Mhz. On Linux *current* frequency reports the
real-time value, on all other platforms this usually represents the
nominal "fixed" value (never changing). If *percpu* is ``True`` and the
system supports per-cpu frequency retrieval (Linux and FreeBSD), a list of
frequencies is returned for each CPU, if not, a list with a single element
is returned. If *min* and *max* cannot be determined they are set to
``0.0``.

Example (Linux):

Expand All @@ -289,7 +289,8 @@ CPU
scpufreq(current=1703.609, min=800.0, max=3500.0),
scpufreq(current=1754.289, min=800.0, max=3500.0)]
Availability: Linux, macOS, Windows, FreeBSD, OpenBSD
Availability: Linux, macOS, Windows, FreeBSD, OpenBSD. *percpu* only
supported on Linux and FreeBSD.

.. versionadded:: 5.1.0

Expand Down

0 comments on commit 52fe551

Please sign in to comment.