Skip to content

Commit

Permalink
جلوگیری از لیست شدن نتایج اشتباه
Browse files Browse the repository at this point in the history
  • Loading branch information
ircfspace committed Apr 29, 2024
1 parent 7b192f9 commit 2f3c137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useIPScanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export const useIPScanner = ({ allIps }: IPScannerProps) => {

const latency = Math.floor((performance.now() - startTime) / MAX_TRIES);

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

0 comments on commit 2f3c137

Please sign in to comment.