From bd78695428545d9c75cd0243fe237b5b28a76512 Mon Sep 17 00:00:00 2001 From: Yuki Ito Date: Wed, 4 May 2016 04:31:39 +0900 Subject: os_mon: Implement cpu_sup:util/0,1 on OSX cpu_sup:util/0,1 works on OSX as well. --- lib/os_mon/src/cpu_sup.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/os_mon/src') diff --git a/lib/os_mon/src/cpu_sup.erl b/lib/os_mon/src/cpu_sup.erl index 5664615230..279754c02e 100644 --- a/lib/os_mon/src/cpu_sup.erl +++ b/lib/os_mon/src/cpu_sup.erl @@ -162,7 +162,8 @@ handle_call({?util, D, PC}, {Client, _Tag}, #state{os_type = {unix, Flavor}} = State) when Flavor == sunos; Flavor == linux; - Flavor == freebsd -> + Flavor == freebsd; + Flavor == darwin -> case measurement_server_call(State#state.server, {?util, D, PC, Client}) of {error, Reason} -> { reply, -- cgit v1.2.3