mirror of
https://github.com/lutris/lutris
synced 2024-11-05 18:10:49 +00:00
Fix download timeout measurement
Using .seconds can't return more than a days worth of seconds, so downloads stop working if you don't get them after a day of inactivity. So, total_seconds() for the win
This commit is contained in:
parent
0cba7b7327
commit
69971a7a64
1 changed files with 1 additions and 1 deletions
|
@ -42,4 +42,4 @@ def get_last_call(key):
|
|||
if not date:
|
||||
return 0
|
||||
delta = datetime.now() - date
|
||||
return delta.seconds
|
||||
return delta.total_seconds()
|
||||
|
|
Loading…
Reference in a new issue