From 6c39bf06e43fd97fc821cf1dcd11636532512ff0 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sat, 13 Dec 2014 13:40:36 +0100 Subject: dashboard: make timeago dynamic using jquery + timeago --- inc/html.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'inc/html.inc.php') diff --git a/inc/html.inc.php b/inc/html.inc.php index a263a58..5bf0ff0 100644 --- a/inc/html.inc.php +++ b/inc/html.inc.php @@ -47,6 +47,8 @@ EOT; } echo << + @@ -291,7 +293,8 @@ function host_summary($cat, $hosts) { elseif ($time > 60) $class .= ' warn'; - printf('%d seconds ago',$class, $time); + printf('', + $class, date('c', $rrd_info['last_update']), $time); } print "\n"; -- cgit v1.1