Skip to content

Commit 02a95c7

Browse files
authored
Merge 1e63968 into sapling-pr-archive-ktf
2 parents c8df347 + 1e63968 commit 02a95c7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Framework/Core/src/CommonServices.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,10 @@ auto flushMetrics(ServiceRegistryRef registry, DataProcessingStats& stats) -> vo
852852
}
853853
monitoring.send(std::move(metric));
854854
});
855-
relayer.sendContextState();
855+
// Do not even calculate GUI related quantities if the GUI is disabled.
856+
if (registry.get<DriverConfig const>().driverHasGUI) {
857+
relayer.sendContextState();
858+
}
856859
monitoring.flushBuffer();
857860
O2_SIGNPOST_END(monitoring_service, sid, "flush", "done flushing metrics");
858861
};

0 commit comments

Comments
 (0)