Fix pfifgw script for packet loss tracking

Fixes #32
This commit is contained in:
Matthias 2023-01-26 22:57:06 +01:00 committed by GitHub
parent 865dab4336
commit fc03e423b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,12 +91,13 @@ foreach ($gw_array as $gw => $gateway) {
$delay = $gw_statuses[$gw]["delay"];
$stddev = $gw_statuses[$gw]["stddev"];
$status = $gw_statuses[$gw]["status"];
$loss = $gw_statuses[$gw]["loss"];
$interface = $gateway["interface"];
$gwdescr = $gateway["descr"];
$monitor = $gateway["monitor"];
$source = $gateway["gateway"];
$loss = $gateway["loss"];
if (!isset($monitor)) {
$monitor = "Unavailable";
}