add ping and fix uptime

This commit is contained in:
LouisLam
2021-07-01 17:00:23 +08:00
parent 9c653c3d05
commit a6b5986dd6
9 changed files with 285 additions and 97 deletions

View File

@@ -18,7 +18,7 @@ export default {
let key = this.monitor.id + "_" + this.type;
if (this.$root.uptimeList[key]) {
if (this.$root.uptimeList[key] !== undefined) {
return Math.round(this.$root.uptimeList[key] * 10000) / 100 + "%";
} else {
return "N/A"