system: tiny refactor

This commit is contained in:
Franco Fichtner 2018-11-24 13:20:16 +01:00
parent 0860755e3b
commit 03ef2ff81e

View File

@ -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;
}