[netperf-dev] netperf2 commit notice r580 - trunk/doc/examples

raj at netperf.org raj at netperf.org
Wed May 16 16:45:51 PDT 2012


Author: raj
Date: 2012-05-16 16:45:51 -0700 (Wed, 16 May 2012)
New Revision: 580

Modified:
   trunk/doc/examples/post_proc.sh
Log:
include the units

Modified: trunk/doc/examples/post_proc.sh
===================================================================
--- trunk/doc/examples/post_proc.sh	2012-05-16 23:36:52 UTC (rev 579)
+++ trunk/doc/examples/post_proc.sh	2012-05-16 23:45:51 UTC (rev 580)
@@ -104,7 +104,11 @@
 esac
 
 # find the interval with the highest AVERAGE.  we can use the
-# timestamps in the vrules file to check this
+# timestamps in the vrules file to check this.  while we are doing so,
+# might as well find the average, minimum and maximum for each
+# interval and we will chart the interval averages with some
+# reasonable transparancy.  if someone wants to chart the interval
+# mins and maxes hopefully it will be fairly clear what to do
 
 rrdtool create ${prefix}_intervals.rrd --step 1 \
     --start `expr $MIN_TIMESTAMP - 1` \
@@ -115,7 +119,6 @@
 i=0
 AVG=0
 end=`expr $NUM_VRULES - 1`
-count=1
 while [ $i -lt $end ]
 do
     start=`expr ${VRULE_TIME[$i]} + 1`
@@ -129,6 +132,9 @@
 	PRINT:avg:"%6.2lf" \
 	PRINT:min:"%6.2lf" \
 	PRINT:max:"%6.2lf" | sed 1d `
+    # there is probably some clever way to do this without spawning
+    # processes but I guess I'm just a fan of stone knives and
+    # bearskins
     avg=`echo $avgminmax | awk '{print int($1)}'`
     min=`echo $avgminmax | awk '{print int($2)}'`
     max=`echo $avgminmax | awk '{print int($3)}'`
@@ -148,7 +154,6 @@
 	MAX=$max
     fi
     i=`expr $i + 2`
-    count=`expr $count + 1`
 done
 
 # multiply it by the MULTIPLIER
@@ -194,6 +199,6 @@
 	LINE2:bits#00FF0080:"$UNITS" > /dev/null
 
 done
-echo "Average of peak interval is $AVG"
-echo "Minimum of peak interval is $MIN"
-echo "Maximum of peak interval is $MAX"
\ No newline at end of file
+echo "Average of peak interval is $AVG $UNITS"
+echo "Minimum of peak interval is $MIN $UNITS"
+echo "Maximum of peak interval is $MAX $UNITS"
\ No newline at end of file



More information about the netperf-dev mailing list