From: moisseev Date: Sat, 8 Aug 2020 12:59:17 +0000 (+0300) Subject: [WebUI] Add uptime and version to servers table X-Git-Tag: 2.6~162^2~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3e426f8515a7201a32b0810c9f85ef8d8a0fc3ab;p=rspamd.git [WebUI] Add uptime and version to servers table --- diff --git a/interface/index.html b/interface/index.html index a57033376..480fa79ad 100644 --- a/interface/index.html +++ b/interface/index.html @@ -114,6 +114,8 @@ Server name Host Status + Uptime + Version Configuration ID diff --git a/interface/js/app/stats.js b/interface/js/app/stats.js index e2724af47..ebc37ef02 100644 --- a/interface/js/app/stats.js +++ b/interface/js/app/stats.js @@ -111,6 +111,8 @@ define(["jquery", "d3pie"], $.each(servers, function (key, val) { var row_class = "danger"; var glyph_status = "fas fa-times"; + var version = "???"; + var uptime = "???"; var short_id = "???"; if (!("config_id" in val.data)) { val.data.config_id = ""; @@ -118,6 +120,8 @@ define(["jquery", "d3pie"], if (val.status) { row_class = "success"; glyph_status = "fas fa-check"; + uptime = msToTime(val.data.uptime); + version = val.data.version; short_id = val.data.config_id.substring(0, 8); } @@ -126,6 +130,8 @@ define(["jquery", "d3pie"], "" + key + "" + "" + val.host + "" + "" + + '' + uptime + "" + + "" + version + "" + "" + short_id + ""); $("#selSrv").append($(""));