Skip to content

Commit 178de47

Browse files
authored
Merge pull request #221 from sy-c/master
v2.10.3
2 parents 27402a0 + 868b82a commit 178de47

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

doc/releaseNotes.md

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

455455
## v2.10.2 - 04/05/2022
456456
- Added some buffer monitoring counters. They are logged in console stats and in monitoring (readout.bufferUsage, one per buffer, from 0% to 100%).
457+
458+
## v2.10.3 - 05/05/2022
459+
- Bug fixed in the readout TF rate regulator (was ineffective after 35 minutes = 2^31 microseconds - wrong variable width in a conversion).

src/RateRegulator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class RateRegulator {
7676
void updateTimeNext() {
7777
if (tnextCount >= tnextFullRefreshInterval) {
7878
// full update, calculated from t0
79-
tnext = t0 + std::chrono::microseconds((int)(nItemsAccepted * period));
79+
tnext = t0 + std::chrono::microseconds((unsigned long long)(nItemsAccepted * period));
8080
tnextCount = 1;
8181
} else {
8282
// quick update, by incrementing period

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.10.2"
12+
#define READOUT_VERSION "2.10.3"
1313

0 commit comments

Comments
 (0)