meminfo-writer: fix high memory check for more than about 150 GB RAM

This commit is contained in:
Vincent Penquerc'h 2013-12-26 10:46:24 -05:00 committed by Marek Marczykowski-Górecki
parent e6c29bbae1
commit 7f2ac22d49

View File

@ -65,7 +65,7 @@ const char *parse(const char *buf)
used_mem_diff = -used_mem_diff;
if (used_mem_diff > used_mem_change_threshold
|| prev_used_mem == 0
|| (used_mem > prev_used_mem && used_mem * 13 / 10 > MemTotal
|| (used_mem > prev_used_mem && used_mem / 10 > (MemTotal+12) / 13
&& used_mem_diff > used_mem_change_threshold/2)) {
prev_used_mem = used_mem;
sprintf(outbuf,