Update patches/background_task/models.py
This commit is contained in:
1 parent
41e78b430d
commit
7f7ba6b286
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user