diff --git a/src/proc_fuse.c b/src/proc_fuse.c index 40eb2680..1d253bba 100644 --- a/src/proc_fuse.c +++ b/src/proc_fuse.c @@ -1351,7 +1351,7 @@ static int proc_meminfo_read(char *buf, size_t size, off_t offset, snprintf(lbuf, 100, "MemFree: %8" PRIu64 " kB\n", memlimit - memusage); printme = lbuf; } else if (startswith(line, "MemAvailable:")) { - snprintf(lbuf, 100, "MemAvailable: %8" PRIu64 " kB\n", memlimit - memusage + mstat.total_cache / 1024); + snprintf(lbuf, 100, "MemAvailable: %8" PRIu64 " kB\n", memlimit - memusage + (mstat.total_active_file + mstat.total_inactive_file) / 1024); printme = lbuf; } else if (startswith(line, "SwapTotal:")) { if (wants_swap) {