Skip to content

Commit d92045f

Browse files
authored
Merge pull request #262 from sy-c/master
v2.21.2
2 parents 341df75 + 84df6aa commit d92045f

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

doc/releaseNotes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,3 +582,6 @@ This file describes the main feature changes for each readout.exe released versi
582582
- o2-readout-rawreader: added options logOff and dumpOrbitStats.
583583
- Bookkeeping: final stats publish at end of run is synchronous.
584584
- Monitoring: added buffers statistics in bytes: readout.bufferUsage.bytes (in addition to existing readout.bufferUsage.value, as a percentage)
585+
586+
## v2.21.2 - 14/09/2023
587+
- Monitoring: fix buffer statistics in bytes (wrong values were reported above 4GB because of a 32bit variable).

src/ConsumerFMQchannel.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ class ConsumerFMQchannel : public Consumer
415415
mp -> setWarningCallback(std::bind(&ConsumerFMQchannel::mplog, this, std::placeholders::_1));
416416
if ((mp->getId() >= 0) && (mp->getId() < ReadoutStatsMaxItems)) {
417417
mp -> setBufferStateVariable(&gReadoutStats.counters.bufferUsage[mp->getId()]);
418-
gReadoutStats.counters.bufferSize[mp->getId()] = memoryPoolPageSize * memoryPoolNumberOfPages;
418+
gReadoutStats.counters.bufferSize[mp->getId()] = (uint64_t)memoryPoolPageSize * (uint64_t)memoryPoolNumberOfPages;
419419
}
420420
}
421421
theLog.log(LogInfoDevel_(3008), "Using memory pool [%d]: %d pages x %d bytes", mp->getId(), memoryPoolNumberOfPages, memoryPoolPageSize);

src/ReadoutEquipment.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ ReadoutEquipment::ReadoutEquipment(ConfigFile& cfg, std::string cfgEntryPoint, b
227227
mp -> setWarningCallback(std::bind(&ReadoutEquipment::mplog, this, std::placeholders::_1));
228228
if ((mp->getId() >= 0) && (mp->getId() < ReadoutStatsMaxItems)) {
229229
mp -> setBufferStateVariable(&gReadoutStats.counters.bufferUsage[mp->getId()]);
230-
gReadoutStats.counters.bufferSize[mp->getId()] = memoryPoolPageSize * memoryPoolNumberOfPages;
230+
gReadoutStats.counters.bufferSize[mp->getId()] = (uint64_t)memoryPoolPageSize * (uint64_t)memoryPoolNumberOfPages;
231231
}
232232
theLog.log(LogInfoDevel_(3008), "Using memory pool [%d]: %d pages x %d bytes", mp->getId(), memoryPoolNumberOfPages, memoryPoolPageSize);
233233

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

0 commit comments

Comments
 (0)