Skip to content

Commit 9b07737

Browse files
committed
fix monitoring buffer size counters
1 parent 341df75 commit 9b07737

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

0 commit comments

Comments
 (0)