Skip to content

Commit

Permalink
smallFix
Browse files Browse the repository at this point in the history
  • Loading branch information
ircfspace committed Mar 5, 2024
1 parent 0fe9e9f commit 8fab648
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/hooks/useIPScanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,12 @@ export const useIPScanner = ({ allIps }: IPScannerProps) => {
const latency = Math.floor((performance.now() - startTime) / MAX_TRIES);

if (testCount === MAX_TRIES && latency <= state.maxLatency) {
addValidIP({
ip,
latency,
});
if ( latency > 50 ) {
addValidIP({
ip,
latency,
});
}
}

if (
Expand Down

0 comments on commit 8fab648

Please sign in to comment.