aboutsummaryrefslogtreecommitdiffstats
path: root/lib/os_mon/src
diff options
context:
space:
mode:
authorPéter Gömöri <[email protected]>2016-04-25 17:06:15 +0200
committerPéter Gömöri <[email protected]>2016-04-25 17:06:15 +0200
commitb28acdbed744af8468cc75c1e8529c4ef5f16bcd (patch)
tree350171ed918360454bcffd6039e05bbcda52e046 /lib/os_mon/src
parentf2cef11a16d8d5f643cdf913b46042db71bff867 (diff)
downloadotp-b28acdbed744af8468cc75c1e8529c4ef5f16bcd.tar.gz
otp-b28acdbed744af8468cc75c1e8529c4ef5f16bcd.tar.bz2
otp-b28acdbed744af8468cc75c1e8529c4ef5f16bcd.zip
Fix type spec for cpu_sup:util/1
The documentation correctly states that the Busy and NonBusy components in the return value of cpu_sup:util/1 are not tuples but list of tuples: "If the detailed option is given, this is a *list* of {State, Share} tuples"
Diffstat (limited to 'lib/os_mon/src')
-rw-r--r--lib/os_mon/src/cpu_sup.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/os_mon/src/cpu_sup.erl b/lib/os_mon/src/cpu_sup.erl
index 0045b2c09f..5664615230 100644
--- a/lib/os_mon/src/cpu_sup.erl
+++ b/lib/os_mon/src/cpu_sup.erl
@@ -68,7 +68,7 @@
-type util_cpus() :: 'all' | integer() | [integer()].
-type util_state() :: 'user' | 'nice_user' | 'kernel' | 'wait' | 'idle'.
--type util_value() :: {util_state(), float()} | float().
+-type util_value() :: [{util_state(), float()}] | float().
-type util_desc() :: {util_cpus(), util_value(), util_value(), []}.
%%----------------------------------------------------------------------