From 00c42c84995190ee97a021cce91287919efed1a4 Mon Sep 17 00:00:00 2001 From: Dmitry Ivanov Date: Wed, 29 Apr 2015 16:50:36 +0600 Subject: Make cpu_sup:util/0 spec lie less --- lib/os_mon/src/cpu_sup.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/os_mon/src/cpu_sup.erl') 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 -- cgit v1.2.3