Skip to content

Commit

Permalink
fix issue Cacti#205
Browse files Browse the repository at this point in the history
  • Loading branch information
xmacan committed Mar 5, 2024
1 parent 9c1828b commit d2d4929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mactrack_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ function build_InterfacesTable(&$device, &$ifIndexes, $getLinkPorts = false, $ge
$stateChanges = $db_interface[$ifIndex]['stateChanges'];

if ($db_interface[$ifIndex]['ifOperStatus'] == 0) { /* interface previously not up */
if ($ifOperStatus[$ifIndex] == 1) {
if (isset($ifOperStatus[$ifIndex]) && $ifOperStatus[$ifIndex] == 1) {
/* the interface just went up, mark the time */
$last_up_time = date('Y-m-d H:i:s');
$stateChanges += 1;
Expand Down

0 comments on commit d2d4929

Please sign in to comment.