get_word(buf, 0, word, 1024);
if (!strcmp(word, "MemFree:")) {
- free = dec_to_int(buf, 0);
+ free = dec_to_int(buf, NULL);
} else if (!strcmp(word, "Buffers:")) {
- buffered = dec_to_int(buf, 0);
+ buffered = dec_to_int(buf, NULL);
} else if (!strcmp(word, "Cached:")) {
- cache = dec_to_int(buf, 0);
+ cache = dec_to_int(buf, NULL);
} else if (!strcmp(word, "Active:")) {
- active = dec_to_int(buf, 0);
+ active = dec_to_int(buf, NULL);
} else if (!strcmp(word, "Inactive:")) {
- inactive = dec_to_int(buf, 0);
+ inactive = dec_to_int(buf, NULL);
} else if (!strcmp(word, "SwapFree:")) {
- swapfree = dec_to_int(buf, 0);
+ swapfree = dec_to_int(buf, NULL);
} else if (!strcmp(word, "AnonPages:")) {
- anon = dec_to_int(buf, 0);
+ anon = dec_to_int(buf, NULL);
} else if (!strcmp(word, "Slab:")) {
- slab = dec_to_int(buf, 0);
+ slab = dec_to_int(buf, NULL);
} else if (!strcmp(word, "PageTables:")) {
- tables = dec_to_int(buf, 0);
+ tables = dec_to_int(buf, NULL);
} else if (!strcmp(word, "SwapTotal:")) {
- swaptotal = dec_to_int(buf, 0);
+ swaptotal = dec_to_int(buf, NULL);
}
}
fclose(file);