We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d92045f commit 2b6e854Copy full SHA for 2b6e854
src/ConsumerStats.cxx
@@ -235,7 +235,9 @@ class ConsumerStats : public Consumer
235
double timeUntilTimeout = monitoringUpdateTimer.getRemainingTime(); // measured in seconds
236
if (timeUntilTimeout <= 0) {
237
publishStats();
238
- monitoringUpdateTimer.increment();
+ monitoringUpdateTimer.increment(true);
239
+ // ensure a minimum time between consecutive publish
240
+ usleep(100000);
241
} else {
242
if (timeUntilTimeout > 1) {
243
timeUntilTimeout = 1.0; // avoid a sleep longer than 1s to allow exiting promptly
0 commit comments