diff options
author | Björn Gustavsson <[email protected]> | 2011-11-29 16:46:53 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2011-11-30 06:41:42 +0100 |
commit | a84ad9d0a1c25b7ce7a0bc6492d6dea7bb48d6b1 (patch) | |
tree | 294cd263aec0a05cbcbb5910306b3fec4ad24f19 | |
parent | d715afb5d0815dd6ee35387b74a95612a6f808f9 (diff) | |
download | otp-a84ad9d0a1c25b7ce7a0bc6492d6dea7bb48d6b1.tar.gz otp-a84ad9d0a1c25b7ce7a0bc6492d6dea7bb48d6b1.tar.bz2 otp-a84ad9d0a1c25b7ce7a0bc6492d6dea7bb48d6b1.zip |
os_mon: Eliminate use of tuple fun
-rw-r--r-- | lib/os_mon/src/os_mon_mib.erl | 4 | ||||
-rw-r--r-- | lib/os_mon/test/os_mon_mib_SUITE.erl | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/os_mon/src/os_mon_mib.erl b/lib/os_mon/src/os_mon_mib.erl index a4ce274a16..c972913b03 100644 --- a/lib/os_mon/src/os_mon_mib.erl +++ b/lib/os_mon/src/os_mon_mib.erl @@ -65,11 +65,11 @@ %% Shadow argument macros -define(loadShadowArgs, {loadTable, string, record_info(fields, loadTable), 5000, - {os_mon_mib, update_load_table}}). + fun os_mon_mib:update_load_table/0}). -define(diskShadowArgs, {diskTable, {integer, integer}, record_info(fields, diskTable), 5000, - {os_mon_mib, update_disk_table}}). + fun os_mon_mib:update_disk_table/0}). %% Misc -record(diskAlloc, {diskDescr, diskId}). diff --git a/lib/os_mon/test/os_mon_mib_SUITE.erl b/lib/os_mon/test/os_mon_mib_SUITE.erl index 4bd256a3f7..a137efc441 100644 --- a/lib/os_mon/test/os_mon_mib_SUITE.erl +++ b/lib/os_mon/test/os_mon_mib_SUITE.erl @@ -718,7 +718,7 @@ del_dir(Dir) -> {ok, Files} = file:list_dir(Dir), FullPathFiles = lists:map(fun(File) -> filename:join(Dir, File) end, Files), - lists:foreach({file, delete}, FullPathFiles), + lists:foreach(fun file:delete/1, FullPathFiles), file:del_dir(Dir). %%--------------------------------------------------------------------- |