Skip to content

Commit ea5ee56

Browse files
authored
Merge pull request #264 from sy-c/master
v2.21.3
2 parents d92045f + e3c5c1a commit ea5ee56

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

doc/releaseNotes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,3 +585,6 @@ This file describes the main feature changes for each readout.exe released versi
585585

586586
## v2.21.2 - 14/09/2023
587587
- Monitoring: fix buffer statistics in bytes (wrong values were reported above 4GB because of a 32bit variable).
588+
589+
## v2.21.3 - 05/10/2023
590+
- Monitoring: fix multiple publish if system stuck for longer than the update period.

src/ConsumerStats.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,9 @@ class ConsumerStats : public Consumer
235235
double timeUntilTimeout = monitoringUpdateTimer.getRemainingTime(); // measured in seconds
236236
if (timeUntilTimeout <= 0) {
237237
publishStats();
238-
monitoringUpdateTimer.increment();
238+
monitoringUpdateTimer.increment(true);
239+
// ensure a minimum time between consecutive publish
240+
usleep(100000);
239241
} else {
240242
if (timeUntilTimeout > 1) {
241243
timeUntilTimeout = 1.0; // avoid a sleep longer than 1s to allow exiting promptly

src/ReadoutVersion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
#define READOUT_VERSION "2.21.2"
12+
#define READOUT_VERSION "2.21.3"
1313

0 commit comments

Comments
 (0)