From 894122fb29001d6bb15159838f7587d437ee625f Mon Sep 17 00:00:00 2001 From: TwinProduction Date: Sat, 5 Oct 2019 22:47:09 -0400 Subject: [PATCH] Make hostname links instead of just text --- static/index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/index.html b/static/index.html index 446c437c..f8d8257b 100644 --- a/static/index.html +++ b/static/index.html @@ -38,6 +38,7 @@ let tableBody = ""; for (let serviceName in data) { let serviceStatus = ""; + let hostname =data[serviceName][data[serviceName].length-1].hostname for (let key in data[serviceName]) { let entry = data[serviceName][key]; console.log(data[serviceName][key]); @@ -47,7 +48,7 @@ + "" + " " + serviceName + "" + " " + serviceStatus + "" - + " " + data[serviceName][data[serviceName].length-1].hostname + "" + + " " + hostname + "" + " " + parseInt(data[serviceName][data[serviceName].length-1].duration / 1000000) + "ms " + ""; } @@ -61,4 +62,4 @@ }, 3000); - \ No newline at end of file +