diff --git a/src/etc/inc/gwlb.inc b/src/etc/inc/gwlb.inc index b37550f62..4a24fd147 100644 --- a/src/etc/inc/gwlb.inc +++ b/src/etc/inc/gwlb.inc @@ -52,8 +52,7 @@ function setup_gateways_monitor($verbose = false, $gwname = null) flush(); } - $running_processes = running_dpinger_processes(); - foreach ($running_processes as $running_gwname => $process) { + foreach (running_dpinger_processes() as $running_gwname => $process) { if (!empty($gwname) && $running_gwname != $gwname) { continue; }