mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-18 19:17:59 -04:00
implement tcping
This commit is contained in:
parent
84c21b71c0
commit
9c653c3d05
8 changed files with 58 additions and 5 deletions
|
@ -48,7 +48,7 @@ export default {
|
|||
let frames = 12;
|
||||
let step = Math.floor(diff / frames);
|
||||
|
||||
if ((diff > 0 && step < 1) || (diff < 0 && step > 1) || diff === 0) {
|
||||
if (! this.isNum || (diff > 0 && step < 1) || (diff < 0 && step > 1) || diff === 0) {
|
||||
// Lazy to NOT this condition, hahaha.
|
||||
} else {
|
||||
for (let i = 1; i < frames; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue