From 56fcfc9369a4f57b4c593d440ce30bbaefb8992c Mon Sep 17 00:00:00 2001 From: LouisLam Date: Mon, 12 Jul 2021 11:20:18 +0800 Subject: [PATCH] fix show N/A if the ping is 0ms --- src/pages/Details.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/Details.vue b/src/pages/Details.vue index 0b031bfe6..f925c2849 100644 --- a/src/pages/Details.vue +++ b/src/pages/Details.vue @@ -137,7 +137,7 @@ export default { }, ping() { - if (this.lastHeartBeat.ping) { + if (this.lastHeartBeat.ping || this.lastHeartBeat.ping === 0) { return this.lastHeartBeat.ping; } else { return "N/A" @@ -145,7 +145,7 @@ export default { }, avgPing() { - if (this.$root.avgPingList[this.monitor.id]) { + if (this.$root.avgPingList[this.monitor.id] || this.$root.avgPingList[this.monitor.id] === 0) { return this.$root.avgPingList[this.monitor.id]; } else { return "N/A"