mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-19 19:46:37 +00:00
Update patches/background_task/models.py
This commit is contained in:
parent
41e78b430d
commit
7f7ba6b286
@ -49,7 +49,7 @@ class TaskManager(models.Manager):
|
||||
boot_time = self.posix_epoch
|
||||
kcore_path = Path('/proc/kcore')
|
||||
if kcore_path.exists():
|
||||
stats = kcore_path.stats()
|
||||
stats = kcore_path.stat()
|
||||
if stats:
|
||||
boot_time += timedelta(seconds=stats.st_mtime)
|
||||
if boot_time > self._boot_time:
|
||||
|
Loading…
Reference in New Issue
Block a user