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 +