aboutsummaryrefslogtreecommitdiffstats
path: root/lib/os_mon/src
diff options
context:
space:
mode:
authorDmitry Ivanov <[email protected]>2015-04-29 16:50:36 +0600
committerZandra Hird <[email protected]>2015-05-26 12:45:51 +0200
commit00c42c84995190ee97a021cce91287919efed1a4 (patch)
treefd762305e9777769cca3e9c694abcf80281b5def /lib/os_mon/src
parent4034b89a07a97766dba5e6213b1eb4d76ba6df9e (diff)
downloadotp-00c42c84995190ee97a021cce91287919efed1a4.tar.gz
otp-00c42c84995190ee97a021cce91287919efed1a4.tar.bz2
otp-00c42c84995190ee97a021cce91287919efed1a4.zip
Make cpu_sup:util/0 spec lie less
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 0c26956c57..b4ad8e2aa0 100644
--- a/lib/os_mon/src/cpu_sup.erl
+++ b/lib/os_mon/src/cpu_sup.erl
@@ -121,7 +121,7 @@ util(Args) when is_list (Args) ->
util(_) ->
erlang:error(badarg).
--spec util() -> float().
+-spec util() -> float() | {'error', any()}.
util() ->
case util([]) of