Changes

Jump to: navigation, search

Human readable user beancounters

515 bytes added, 15:48, 6 May 2011
no edit summary
} else {
&work_line($line);
</source>
 
Quick (and dirty) patch to only display the information of one container (first argument of the script)
 
<source lang=diff>
--- beacounters.pl 2011-05-06 01:06:58.000000000 -0300
+++ beacounters-container.pl 2011-05-06 12:43:09.000000000 -0300
@@ -11,8 +11,7 @@
# Christian Anton <mail |_at_| christiananton.de> 2008-09-18
-
-open(BEANS,"/proc/user_beancounters");
+open(BEANS,"cat /proc/user_beancounters | grep \" ${ARGV[0]}:\" -A 23 |");
chomp ($arch = `uname -m`);
sub check_maxulong {
</source>
3
edits

Navigation menu