Skip to content

Commit

Permalink
Merge pull request #153 from Fabian-Gruenbichler/memactivefix
Browse files Browse the repository at this point in the history
fix Active/Inactive /proc/meminfo
  • Loading branch information
hallyn committed Oct 20, 2016
2 parents 228656b + 2f306ad commit 0964892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings.c
Expand Up @@ -3192,11 +3192,11 @@ static int proc_meminfo_read(char *buf, size_t size, off_t offset,
} else if (startswith(line, "SwapCached:")) {
snprintf(lbuf, 100, "SwapCached: %8lu kB\n", 0UL);
printme = lbuf;
} else if (startswith(line, "Active")) {
} else if (startswith(line, "Active:")) {
snprintf(lbuf, 100, "Active: %8lu kB\n",
active_anon + active_file);
printme = lbuf;
} else if (startswith(line, "Inactive")) {
} else if (startswith(line, "Inactive:")) {
snprintf(lbuf, 100, "Inactive: %8lu kB\n",
inactive_anon + inactive_file);
printme = lbuf;
Expand Down

0 comments on commit 0964892

Please sign in to comment.