shm: include rcCountSegment free memory in the monitor output

This commit is contained in:
Alexey Rybalchenko 2023-11-24 09:55:11 +01:00
parent 34e8a24c86
commit ff1f9b94ef

View File

@ -274,7 +274,7 @@ bool Monitor::PrintShm(const ShmId& shmId)
try {
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&) {
ss << ", rcCountSegment: not found";
}