mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-12-15 07:20:17 +00:00
shm: include rcCountSegment free memory in the monitor output
This commit is contained in:
@@ -274,7 +274,7 @@ bool Monitor::PrintShm(const ShmId& shmId)
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
managed_shared_memory rcCountSegment(open_read_only, MakeShmName(shmId.shmId, "rrc", id).c_str());
|
managed_shared_memory rcCountSegment(open_read_only, MakeShmName(shmId.shmId, "rrc", id).c_str());
|
||||||
ss << ", rcCountSegment size: " << rcCountSegment.get_size();
|
ss << ", rcCountSegment size: " << rcCountSegment.get_size() << ", free: " << rcCountSegment.get_free_memory();
|
||||||
} catch (bie&) {
|
} catch (bie&) {
|
||||||
ss << ", rcCountSegment: not found";
|
ss << ", rcCountSegment: not found";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user