From 03ef2ff81e07d49e47ddb46c6b907335f045fc52 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Sat, 24 Nov 2018 13:20:16 +0100 Subject: [PATCH] system: tiny refactor --- src/etc/inc/gwlb.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; }