mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 07:09:31 +00:00
Fix #670
This commit is contained in:
parent
d17583286a
commit
e0d9dd0f9c
3 changed files with 5 additions and 5 deletions
|
|
@ -37,7 +37,7 @@ proc hasExpired(account: GuestAccount): bool =
|
|||
let
|
||||
created = snowflakeToEpoch(account.id)
|
||||
now = epochTime().int64
|
||||
daysOld = int(now - created) div (24 * 60 * 60)
|
||||
daysOld = int(now - created) div dayInSeconds
|
||||
return daysOld > 30
|
||||
|
||||
proc getAccountPoolHealth*(): JsonNode =
|
||||
|
|
@ -45,7 +45,7 @@ proc getAccountPoolHealth*(): JsonNode =
|
|||
|
||||
var
|
||||
totalReqs = 0
|
||||
limited: PackedSet[BiggestInt]
|
||||
limited: PackedSet[int64]
|
||||
reqsPerApi: Table[string, int]
|
||||
oldest = now.int64
|
||||
newest = 0'i64
|
||||
|
|
|
|||
Loading…
Reference in a new issue