Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display Up/Down time in Device List #9951

merged 12 commits into from Mar 18, 2019

updated includes/

  • Loading branch information...
PipoCanaja committed Mar 16, 2019
commit a7346674d6a3527dd3394b3071bd02a3a3fe2dc9
@@ -30,6 +30,7 @@
use LibreNMS\Alert\AlertUtil;
use LibreNMS\Config;
use PHPMailer\PHPMailer\PHPMailer;
use LibreNMS\Util\Time;
* @param $rule
@@ -411,8 +412,8 @@ function DescribeAlert($alert)
$obj['version'] = $device['version'];
$obj['location'] = $device['location'];
$obj['uptime'] = $device['uptime'];
$obj['uptime_short'] = formatUptime($device['uptime'], 'short');
$obj['uptime_long'] = formatUptime($device['uptime']);
$obj['uptime_short'] = Time::formatInterval($device['uptime'], 'short');
$obj['uptime_long'] = Time::formatInterval($device['uptime']);
$obj['description'] = $device['purpose'];
$obj['notes'] = $device['notes'];
$obj['alert_notes'] = $alert['note'];
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.