Skip to content

Commit 3ce0dac

Browse files
committed
src/tsung_controller: replace deprecated snmpm:sync_get/4 by snmpm:sync_get2/4
Link: https://www.erlang.org/docs/24/general_info/scheduled_for_removal#otp-25 Signed-off-by: Ariel Otilibili <[email protected]>
1 parent 4b4e1e8 commit 3ce0dac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tsung_controller/ts_os_mon_snmp.erl

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ snmp_get("snmp://"++Host, [], State, _TimeOut, Results )->
242242
analyse_snmp_data(Results,Agent,State);
243243
snmp_get(URI, [OIDs|Tail], State, TimeOut,PrevRes)->
244244
?LOGF("Running snmp get ~p ~p~n", [URI,OIDs], ?DEB),
245-
Res = snmpm:sync_get("tsung",URI,OIDs,TimeOut),
245+
Res = snmpm:sync_get2("tsung",URI,OIDs,TimeOut),
246246
?LOGF("Res ~p ~n", [Res], ?DEB),
247247
case Res of
248248
{ok,{noError,_,Results},_Remaining} ->

0 commit comments

Comments
 (0)