Skip to content

Commit

Permalink
rearrange service startup
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonghi committed Jan 5, 2024
1 parent 05d670f commit 4e0aafa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jtop/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,11 @@ def __init__(self, force=False):
# Check if running a root
if os.getuid() != 0:
raise JtopException("jtop service need sudo to work")
# Load configuration
self.config = Config()
# Save version jtop
self._version = deepcopy(get_var(VERSION_RE))
logger.info("jetson_stats {version} - server loaded".format(version=self._version))
# Load configuration
self.config = Config()
# Error queue
self._error = Queue()
# Command queue
Expand All @@ -273,9 +273,9 @@ def __init__(self, force=False):
# Generate key and open broadcaster
self.broadcaster = JtopManager()
# Load board and platform variables
self.board = {'hardware': get_hardware()}
data_platform = get_platform_variables()
logger.info("Running on Python: {python_version}".format(python_version=data_platform['Python']))
self.board = {'hardware': get_hardware()}
# From this point are initialized or hardware services
# Setup cpu service
self.cpu = CPUService()
Expand Down

0 comments on commit 4e0aafa

Please sign in to comment.