Skip to content

Commit

Permalink
count shr off rss
Browse files Browse the repository at this point in the history
  • Loading branch information
slw287r committed Jun 28, 2021
1 parent 4a1c86b commit 9367d3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mntr.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ void get_mem(const pid_t pid, mem_t *mem)
}
mem->rss *= getpagesize();
mem->shr *= getpagesize();
mem->rss -= mem->shr;
fclose(fpstat);
}

Expand Down

0 comments on commit 9367d3a

Please sign in to comment.