Fix regression in shmmonitor

This commit is contained in:
Alexey Rybalchenko 2021-02-19 01:52:31 +01:00
parent 2b3e38d9a4
commit 93dff3c5a7

View File

@ -136,8 +136,13 @@ void Monitor::Run()
if (fInteractive) {
Interactive();
} else {
} else if (fViewOnly) {
CheckSegment();
} else {
while (!fTerminating) {
this_thread::sleep_for(chrono::milliseconds(fIntervalInMS));
CheckSegment();
}
}
if (!fViewOnly) {