This really only works after journal drains because
we adjust for the journal.
Signed-off-by: David Zafman <dzafman@redhat.com>
}
last_msg = now;
if (cur_state == FULL)
- clog->error() << "OSD full dropping all updates " << (int)(ratio * 100) << "% full";
+ clog->error() << "OSD full dropping all updates " << (int)roundf(ratio * 100) << "% full";
else
- clog->warn() << "OSD near full (" << (int)(ratio * 100) << "%)";
+ clog->warn() << "OSD near full (" << (int)roundf(ratio * 100) << "%)";
}
bool OSDService::check_failsafe_full()