aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2019-04-16 14:09:09 +0200
committerGitHub <[email protected]>2019-04-16 14:09:09 +0200
commit93d7a78772bdf2d888a2fd5a98f6a6b3da9b3828 (patch)
tree09809b2e84b7f72b8fcf23ddc408dbed64a06748 /lib
parent9219cde2eae85cb23c13e0fea854a55fa8cf5ed9 (diff)
parent21e50952eb74625f5bf26d392c8945eae561267d (diff)
downloadotp-93d7a78772bdf2d888a2fd5a98f6a6b3da9b3828.tar.gz
otp-93d7a78772bdf2d888a2fd5a98f6a6b3da9b3828.tar.bz2
otp-93d7a78772bdf2d888a2fd5a98f6a6b3da9b3828.zip
Merge pull request #2208 from elbrujohalcon/elbrujohalcon.cpu_sup.specs
Fix specs and type definitions in cpu_sup OTP-15770
Diffstat (limited to 'lib')
-rw-r--r--lib/os_mon/src/cpu_sup.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/os_mon/src/cpu_sup.erl b/lib/os_mon/src/cpu_sup.erl
index ba2d89313e..d28f229b3e 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(), number()}] | number().
-type util_desc() :: {util_cpus(), util_value(), util_value(), []}.
%%----------------------------------------------------------------------
@@ -122,7 +122,7 @@ util(Args) when is_list (Args) ->
util(_) ->
erlang:error(badarg).
--spec util() -> float() | {'error', any()}.
+-spec util() -> number() | {'error', any()}.
util() ->
case util([]) of