diff options
author | moisseev <moiseev@mezonplus.ru> | 2020-08-09 17:50:13 +0300 |
---|---|---|
committer | moisseev <moiseev@mezonplus.ru> | 2020-08-09 17:50:13 +0300 |
commit | 261ab4ee5202dc982da9923e1ed37345af9f104e (patch) | |
tree | dda3e47df0a881e7a0f00127d622356436147dc2 /interface/js/app/stats.js | |
parent | 4c7d0f2f469b56088af9d53ff782f9304b5c67b3 (diff) | |
download | rspamd-261ab4ee5202dc982da9923e1ed37345af9f104e.tar.gz rspamd-261ab4ee5202dc982da9923e1ed37345af9f104e.zip |
[WebUI] Highlight uptime of restarted servers
Diffstat (limited to 'interface/js/app/stats.js')
-rw-r--r-- | interface/js/app/stats.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/interface/js/app/stats.js b/interface/js/app/stats.js index 38578866e..ea1919af5 100644 --- a/interface/js/app/stats.js +++ b/interface/js/app/stats.js @@ -128,7 +128,9 @@ define(["jquery", "d3pie"], "<td>" + key + "</td>" + "<td>" + val.host + "</td>" + '<td class="text-center"><span class="icon"><i class="' + glyph_status + '"></i></span></td>' + - '<td class="text-right">' + uptime + "</td>" + + '<td class="text-right' + + (val.data.uptime < 3600 ? ' warning" title="Has been restarted within the last hour"' : "") + + '">' + uptime + "</td>" + "<td>" + version + "</td>" + "<td>" + short_id + "</td></tr>"); |