forked from LBRYCommunity/lbry-sdk
only count checked unreachable
This commit is contained in:
parent
7ea88e7b31
commit
fb7a93096e
1 changed files with 2 additions and 1 deletions
|
@ -81,7 +81,8 @@ class Crawler:
|
|||
|
||||
@property
|
||||
def unreachable_peers_count(self):
|
||||
return self.recent_peers_query.filter(DHTPeer.latency == None).count()
|
||||
half_hour_ago = datetime.datetime.utcnow() - datetime.timedelta(minutes=30)
|
||||
return self.recent_peers_query.filter(DHTPeer.latency == None, DHTPeer.last_check > half_hour_ago).count()
|
||||
|
||||
@property
|
||||
def peers_with_errors_count(self):
|
||||
|
|
Loading…
Reference in a new issue