Permalink
Browse files

added simple fix to statm.sh

  • Loading branch information...
1 parent 81ecd9c commit c3797051ea6414ba9644cf0c6a68dc50c9d3274e @yersinia committed Jun 27, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 linux/perf/memory/statm.sh
View
8 linux/perf/memory/statm.sh
@@ -1,12 +1,12 @@
cat /proc/"$1"/statm | awk '
BEGIN { PGSZ=4 ; }
{
-TOTAL = $1*$PGSZ;
-RSS = $2*$PGSZ;
+TOTAL = $1*PGSZ;
+RSS = $2*PGSZ;
SHARED = $3*PGSZ;
ANON = RSS-SHARED;
-TEXT = $4*$PGSZ;
-LIBS = $5$PGSZ;
+TEXT = $4*PGSZ;
+LIBS = $5*PGSZ;
DATA = $6*PGSZ;
}
END {

0 comments on commit c379705

Please sign in to comment.