Editing Human readable user beancounters
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 13: | Line 13: | ||
shmpages 11.58 mb 11.64 mb 512.00 mb 512.00 mb 0 | shmpages 11.58 mb 11.64 mb 512.00 mb 512.00 mb 0 | ||
numproc 84 101 500 500 0 | numproc 84 101 500 500 0 | ||
− | physpages 278.24 mb 395.75 mb 0 | + | physpages 278.24 mb 395.75 mb 0 MAX_ULONG 0 |
− | vmguarpages 0 0 244.14 mb | + | vmguarpages 0 0 244.14 mb MAX_ULONG 0 |
− | oomguarpages 279.66 mb 396.98 mb 122.07 mb | + | oomguarpages 279.66 mb 396.98 mb 122.07 mb MAX_ULONG 0 |
numtcpsock 25 53 500 500 0 | numtcpsock 25 53 500 500 0 | ||
numflock 18 22 200 220 0 | numflock 18 22 200 220 0 | ||
Line 70: | Line 70: | ||
my $bytes = shift; | my $bytes = shift; | ||
− | if (defined(&check_maxulong($bytes))) { return " | + | if (defined(&check_maxulong($bytes))) { return "MAX_ULONG"; } |
my $kbytes = $bytes / 1024; | my $kbytes = $bytes / 1024; | ||
Line 90: | Line 90: | ||
if ($pages == 0) { return "0"; } | if ($pages == 0) { return "0"; } | ||
− | if (defined(&check_maxulong($pages))) { return " | + | if (defined(&check_maxulong($pages))) { return "MAX_ULONG"; } |
my $kbytes = $pages * 4; | my $kbytes = $pages * 4; | ||
Line 107: | Line 107: | ||
sub recalc_nothing { | sub recalc_nothing { | ||
my $number = shift; | my $number = shift; | ||
− | if (defined(&check_maxulong($number))) { return " | + | if (defined(&check_maxulong($number))) { return "MAX_ULONG"; } |
return $number; | return $number; |