Update simpleping.js

This commit is contained in:
Mr Chen 2024-07-11 04:11:25 +08:00
parent c989644c6f
commit 53563cb130
1 changed files with 10 additions and 1 deletions

View File

@ -122,6 +122,15 @@ function getBeforeDate(n){
function pingDataGraphPosData(){
var isOk = document.getElementById('pingview');
if (!isOk){
clearInterval(posTimer);
}
console.log('run');
if (chartPingData.length>0){
var dlen = chartPingData.length;
last_pos = chartPingData[dlen-1];
@ -164,7 +173,7 @@ function pingDataGraphData(day){
clearInterval(posTimer);
posTimer = clearInterval(function() {
pingDataGraphPosData();
}, 2000);
}, 3000);
});
}