mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-21 23:43:27 +01:00
Minor update
This commit is contained in:
parent
c734e32e21
commit
a3f2591bbf
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user