Skip to content

Commit

Permalink
Fix incorrect number of seconds in a day (#16042)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pikamander2 committed May 19, 2024
1 parent 65d13a7 commit 742b015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Table/DeviceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ private function getLabel($device)
} elseif ($device->status == 0) {
return 'label-danger';
} else {
$warning_time = \LibreNMS\Config::get('uptime_warning', 84600);
$warning_time = \LibreNMS\Config::get('uptime_warning', 86400);
if ($device->uptime < $warning_time && $device->uptime != 0) {
return 'label-warning';
}
Expand Down

0 comments on commit 742b015

Please sign in to comment.