summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/config_mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config_mem.c b/src/config_mem.c
index d579eac..2fbc32f 100644
--- a/src/config_mem.c
+++ b/src/config_mem.c
@@ -33,7 +33,7 @@ int config_mem_load(struct node* n) {
int percent;
sysinfo(&si);
- used = si.totalram - si.freeram;
+ used = si.totalram - si.freeram - si.bufferram;
percent = used * 100 / si.totalram;
if(percent < 20) {

Generated by cgit