From a3f2591bbfe946e5cc1a594577d014743bacd1a5 Mon Sep 17 00:00:00 2001 From: TwinProduction Date: Sun, 15 Sep 2019 22:43:28 -0400 Subject: [PATCH] Minor update --- static/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/index.html b/static/index.html index e5d5bdd5..d56d6559 100644 --- a/static/index.html +++ b/static/index.html @@ -39,14 +39,14 @@ for (let key in data[serviceName]) { let entry = data[serviceName][key]; console.log(data[serviceName][key]); - serviceStatus += entry.success ? OK : NOK; + serviceStatus = (entry.success ? OK : NOK) + serviceStatus; } tableBody += "" + "" + " " + serviceName + "" + " " + serviceStatus + "" - + " " + data[serviceName][0].hostname + "" - + " " + parseInt(data[serviceName][0].duration / 1000000) + "ms " + + " " + data[serviceName][data[serviceName].length-1].hostname + "" + + " " + parseInt(data[serviceName][data[serviceName].length-1].duration / 1000000) + "ms " + ""; } $("#results").html(tableBody);