Skip to content

Commit 520d583

Browse files
committed
Move sys step to be under update sys metrics if
1 parent 8d04fea commit 520d583

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

simvue/run.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -424,14 +424,13 @@ def _heartbeat(
424424

425425
if _update_system_metrics:
426426
self._get_internal_metrics(system_metrics_step=sys_step)
427-
428427
sys_step += 1
429428

430-
last_sys_metric_call = (
431-
_current_time
432-
if _update_system_metrics
433-
else last_sys_metric_call
434-
)
429+
last_sys_metric_call = (
430+
_current_time
431+
if _update_system_metrics
432+
else last_sys_metric_call
433+
)
435434

436435
if time.time() - last_heartbeat < self._heartbeat_interval:
437436
time.sleep(1)

0 commit comments

Comments
 (0)