mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-20 12:06:35 +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
|
boot_time = self.posix_epoch
|
||||||
kcore_path = Path('/proc/kcore')
|
kcore_path = Path('/proc/kcore')
|
||||||
if kcore_path.exists():
|
if kcore_path.exists():
|
||||||
stats = kcore_path.stats()
|
stats = kcore_path.stat()
|
||||||
if stats:
|
if stats:
|
||||||
boot_time += timedelta(seconds=stats.st_mtime)
|
boot_time += timedelta(seconds=stats.st_mtime)
|
||||||
if boot_time > self._boot_time:
|
if boot_time > self._boot_time:
|
||||||
|
Loading…
Reference in New Issue
Block a user