Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMalekfar authored Dec 14, 2023
1 parent 614b121 commit 59a5185
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,14 @@ async function testIPs(ipList) {
MaxofLatencies = EachFetchLatency.length > 0 ? Math.max(...EachFetchLatency) : 0; // get the maximum latency or -1 if the array is empty
if (ch) {
timeout = 1 * multiply * maxLatency;
document.getElementById('test-no').innerText = `#${numberOfWorkingIPs}/#${testNo}`;
document.getElementById('test-no').innerText = `#${numberOfWorkingIPs}/#${testNo}:`;
document.getElementById('ip-no').innerText = ip;
document.getElementById('ip-no').style = `color: green`;
document.getElementById('ip-try').innerText = ch;
document.getElementById('ip-latency').innerText = latency + 'ms';
} else {
timeout = 1.2 * multiply * maxLatency;
document.getElementById('test-no').innerText = `#${numberOfWorkingIPs}/#${testNo}`;
document.getElementById('test-no').innerText = `#${numberOfWorkingIPs}/#${testNo}:`;
document.getElementById('ip-no').innerText = ip;
document.getElementById('ip-no').style = `color: red`;
document.getElementById('ip-try').innerText = '';
Expand Down

0 comments on commit 59a5185

Please sign in to comment.