Merge pull request #35 from Maddosaurus/fix-loss

Fix pfifgw script for packet loss tracking
This commit is contained in:
Brendan Smith 2023-01-26 19:14:09 -06:00 committed by GitHub
commit 679f68ad13
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";
}