summaryrefslogtreecommitdiff
path: root/lib/os_mon/src/os_mon_sysinfo.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/os_mon/src/os_mon_sysinfo.erl')
-rw-r--r--lib/os_mon/src/os_mon_sysinfo.erl12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/os_mon/src/os_mon_sysinfo.erl b/lib/os_mon/src/os_mon_sysinfo.erl
index 4f5a682a1f..5e9fdd7ae9 100644
--- a/lib/os_mon/src/os_mon_sysinfo.erl
+++ b/lib/os_mon/src/os_mon_sysinfo.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1997-2021. All Rights Reserved.
+%% Copyright Ericsson AB 1997-2023. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
@@ -45,7 +45,7 @@ get_disk_info() ->
gen_server:call(os_mon_sysinfo, get_disk_info).
get_disk_info(DriveRoot) ->
- gen_server:call(os_mon_sysinfo, {get_disk_info,DriveRoot}).
+ gen_server:call(os_mon_sysinfo, {get_disk_info, DriveRoot}).
get_mem_info() ->
gen_server:call(os_mon_sysinfo, get_mem_info).
@@ -65,8 +65,8 @@ init([]) ->
handle_call(get_disk_info, _From, State) ->
{reply, get_disk_info1(State#state.port), State};
-handle_call({get_disk_info,RootList}, _From, State) ->
- {reply, get_disk_info1(State#state.port,RootList), State};
+handle_call({get_disk_info, DriveRoot}, _From, State) ->
+ {reply, get_disk_info1(State#state.port, DriveRoot), State};
handle_call(get_mem_info, _From, State) ->
{reply, get_mem_info1(State#state.port), State}.
@@ -108,8 +108,8 @@ get_disk_info1(Port) ->
Port ! {self(),{command,[?DISK_INFO]}},
get_data(Port,[]).
-get_disk_info1(Port,PathList) ->
- Port ! {self(),{command,[?DISK_INFO|[P++[0]||P <- PathList]]}},
+get_disk_info1(Port, DriveRoot) ->
+ Port ! {self(), {command,[?DISK_INFO|DriveRoot++[0]]}},
get_data(Port,[]).
get_mem_info1(Port) ->