Skip to content

Commit 5fd345b

Browse files
committed
fix statistics
1 parent 6048f84 commit 5fd345b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

statistics/statistics.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,23 +55,23 @@ async def number_of_proxies_to_process(timestamp):
5555
good_proxies_count = await db.count(
5656
Proxy.select().where(
5757
Proxy.number_of_bad_checks == 0,
58-
Proxy.next_check_time < timestamp - Proxy.checking_period,
58+
Proxy.next_check_time < timestamp,
5959
)
6060
)
6161

6262
bad_proxies_count = await db.count(
6363
Proxy.select().where(
6464
Proxy.number_of_bad_checks > 0,
6565
Proxy.number_of_bad_checks < settings.DEAD_PROXY_THRESHOLD,
66-
Proxy.next_check_time < timestamp - settings.BAD_PROXY_CHECKING_PERIOD,
66+
Proxy.next_check_time < timestamp,
6767
)
6868
)
6969

7070
dead_proxies_count = await db.count(
7171
Proxy.select().where(
7272
Proxy.number_of_bad_checks >= settings.DEAD_PROXY_THRESHOLD,
7373
Proxy.number_of_bad_checks < settings.DO_NOT_CHECK_ON_N_BAD_CHECKS,
74-
Proxy.next_check_time < timestamp - settings.DEAD_PROXY_CHECKING_PERIOD,
74+
Proxy.next_check_time < timestamp,
7575
)
7676
)
7777

0 commit comments

Comments
 (0)