Commit 0ff2d46d2b0cc073316a3949fe131cdb76239299
1 parent
8c10201c
Fixed check_memfree for linux, not reporting true free memory.
Showing
1 changed file
with
2 additions
and
1 deletions
check_memfree/check_memfree.cpp
100644 → 100755
... | ... | @@ -111,8 +111,9 @@ int main(int argc, char **argv) |
111 | 111 | |
112 | 112 | totalMem = getNum(&meminfo); |
113 | 113 | freeMem += getNum(&meminfo); |
114 | + getNum(&meminfo); | |
114 | 115 | freeMem += getNum(&meminfo); |
115 | - freeMem += getNum(&meminfo); | |
116 | + freeMem += getNum(&meminfo); | |
116 | 117 | |
117 | 118 | meminfo.close(); |
118 | 119 | ... | ... |