mirror of
https://github.com/ceph/ceph
synced 2025-01-01 08:32:24 +00:00
mds/MDBalancer: add err info when ifstream open failure
Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
This commit is contained in:
parent
12c068365c
commit
5478769753
@ -162,7 +162,9 @@ mds_load_t MDBalancer::get_load(utime_t now)
|
||||
ifstream cpu("/proc/loadavg");
|
||||
if (cpu.is_open())
|
||||
cpu >> load.cpu_load_avg;
|
||||
|
||||
else
|
||||
derr << "input file '/proc/loadavg' not found" << dendl;
|
||||
|
||||
dout(15) << "get_load " << load << dendl;
|
||||
return load;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user