mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
fix show N/A if the ping is 0ms
This commit is contained in:
parent
a9d19ae06a
commit
56fcfc9369
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue