aboutsummaryrefslogtreecommitdiffstats
path: root/lib/os_mon/src/cpu_sup.erl
diff options
context:
space:
mode:
authorYuki Ito <[email protected]>2016-05-04 04:31:39 +0900
committerYuki Ito <[email protected]>2016-05-06 02:11:45 +0900
commitbd78695428545d9c75cd0243fe237b5b28a76512 (patch)
treedf4b0c7c57958eeef28317b086269820b197e559 /lib/os_mon/src/cpu_sup.erl
parent6a1290f534164d1a5771dba37c23124652b9f7c9 (diff)
downloadotp-bd78695428545d9c75cd0243fe237b5b28a76512.tar.gz
otp-bd78695428545d9c75cd0243fe237b5b28a76512.tar.bz2
otp-bd78695428545d9c75cd0243fe237b5b28a76512.zip
os_mon: Implement cpu_sup:util/0,1 on OSX
cpu_sup:util/0,1 works on OSX as well.
Diffstat (limited to 'lib/os_mon/src/cpu_sup.erl')
-rw-r--r--lib/os_mon/src/cpu_sup.erl3
1 files changed, 2 insertions, 1 deletions
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,