Skip to content

Commit 8d04fea

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

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

simvue/run.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -425,13 +425,13 @@ def _heartbeat(
425425
if _update_system_metrics:
426426
self._get_internal_metrics(system_metrics_step=sys_step)
427427

428-
sys_step += 1
428+
sys_step += 1
429429

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

436436
if time.time() - last_heartbeat < self._heartbeat_interval:
437437
time.sleep(1)

0 commit comments

Comments
 (0)