diff options
author | Gustav Simonsson <[email protected]> | 2012-05-21 16:52:55 +0200 |
---|---|---|
committer | Gustav Simonsson <[email protected]> | 2012-05-21 16:52:55 +0200 |
commit | 7a92687ec2b44353fef273a9e1e731f64c4a6d2e (patch) | |
tree | a83a13e0eb3270f0fc85ec05511c2ccd4a696c86 /lib/os_mon/src/disksup.erl | |
parent | e4717301b73f2d7b2716b625e1b647b35d2815be (diff) | |
download | otp-7a92687ec2b44353fef273a9e1e731f64c4a6d2e.tar.gz otp-7a92687ec2b44353fef273a9e1e731f64c4a6d2e.tar.bz2 otp-7a92687ec2b44353fef273a9e1e731f64c4a6d2e.zip |
Add infinity timeout to os_mon calls
Diffstat (limited to 'lib/os_mon/src/disksup.erl')
-rw-r--r-- | lib/os_mon/src/disksup.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/os_mon/src/disksup.erl b/lib/os_mon/src/disksup.erl index 308cd1b7fa..c7abb7a386 100644 --- a/lib/os_mon/src/disksup.erl +++ b/lib/os_mon/src/disksup.erl @@ -43,24 +43,24 @@ start_link() -> gen_server:start_link({local, disksup}, disksup, [], []). get_disk_data() -> - os_mon:call(disksup, get_disk_data). + os_mon:call(disksup, get_disk_data, infinity). get_check_interval() -> - os_mon:call(disksup, get_check_interval). + os_mon:call(disksup, get_check_interval, infinity). set_check_interval(Minutes) -> case param_type(disk_space_check_interval, Minutes) of true -> - os_mon:call(disksup, {set_check_interval, Minutes}); + os_mon:call(disksup, {set_check_interval, Minutes}, infinity); false -> erlang:error(badarg) end. get_almost_full_threshold() -> - os_mon:call(disksup, get_almost_full_threshold). + os_mon:call(disksup, get_almost_full_threshold, infinity). set_almost_full_threshold(Float) -> case param_type(disk_almost_full_threshold, Float) of true -> - os_mon:call(disksup, {set_almost_full_threshold, Float}); + os_mon:call(disksup, {set_almost_full_threshold, Float}, infinity); false -> erlang:error(badarg) end. |