mirror of
https://github.com/TwiN/gatus.git
synced 2024-12-14 11:58:04 +00:00
Minor update
This commit is contained in:
parent
c734e32e21
commit
a3f2591bbf
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue