1
0
Fork 0
mirror of https://github.com/TwiN/gatus.git synced 2024-12-14 11:58:04 +00:00

Minor update

This commit is contained in:
TwinProduction 2019-09-15 22:43:28 -04:00
parent c734e32e21
commit a3f2591bbf

View file

@ -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 += ""
+ "<tr>"
+ " <td>" + serviceName + "</td>"
+ " <td>" + serviceStatus + "</td>"
+ " <td>" + data[serviceName][0].hostname + "</td>"
+ " <td>" + parseInt(data[serviceName][0].duration / 1000000) + "ms </td>"
+ " <td>" + data[serviceName][data[serviceName].length-1].hostname + "</td>"
+ " <td>" + parseInt(data[serviceName][data[serviceName].length-1].duration / 1000000) + "ms </td>"
+ "</tr>";
}
$("#results").html(tableBody);