modify log info.
This commit is contained in:
parent
fc5e135c14
commit
a531859d09
@ -349,8 +349,8 @@ bool InsufficientFreeMemory() {
|
||||
std::string strMemFree = GetFileContent("/proc/meminfo", 2);
|
||||
sscanf(strMemFree.c_str(), "%s%ld", name1, &mem_free);
|
||||
mem_free = mem_free / 1024;
|
||||
zlog_warn(zct, "free memory: %ld MB", mem_free);
|
||||
if (mem_free < 80) {
|
||||
zlog_warn(zct, "free memory: %ld MB", mem_free);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user