mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-15 03:53:58 +08:00
openpilot v0.8.11 release
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import importlib
|
||||
import os
|
||||
import signal
|
||||
import struct
|
||||
import time
|
||||
import subprocess
|
||||
from abc import ABC, abstractmethod
|
||||
@@ -88,7 +89,7 @@ class ManagerProcess(ABC):
|
||||
|
||||
try:
|
||||
fn = WATCHDOG_FN + str(self.proc.pid)
|
||||
self.last_watchdog_time = int(open(fn).read())
|
||||
self.last_watchdog_time = struct.unpack('Q', open(fn, "rb").read())[0]
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user