[netperf-dev] netperf2 commit notice r598 - trunk/doc/examples
raj at netperf.org
raj at netperf.org
Mon Jun 25 15:21:26 PDT 2012
Author: raj
Date: 2012-06-25 15:21:26 -0700 (Mon, 25 Jun 2012)
New Revision: 598
Modified:
trunk/doc/examples/post_proc.py
Log:
comment the script just a wee bit more
Modified: trunk/doc/examples/post_proc.py
===================================================================
--- trunk/doc/examples/post_proc.py 2012-06-25 20:44:19 UTC (rev 597)
+++ trunk/doc/examples/post_proc.py 2012-06-25 22:21:26 UTC (rev 598)
@@ -146,23 +146,27 @@
interim_end=float(fields[9])
have_result=True
elif "NETPERF_INTERIM_RESULT" in raw_result:
- # keyval
+ # keyval first line
interim_result=float(raw_result.split('=')[1])
have_result=False
elif "NETPERF_UNITS" in raw_result:
- # keyval
+ # keyval second line
interim_units=raw_result.split('=')[1]
have_result=False
elif "NETPERF_INTERVAL" in raw_result:
- # keyval
+ # keyval keyval third line
interim_interval=float(raw_result.split('=')[1])
have_result=False
elif "NETPERF_ENDING" in raw_result:
- # keyval
+ # keyval keyval fourth line
interim_end=float(raw_result.split('=')[1])
have_result=True
else:
- # csv
+ # csv, but we are interested only in those lines with four
+ # fields, three commas. if someone happens to ask for
+ # four values from the omni-output selector this may not
+ # work so well but we can deal with that when it is known
+ # to be a problem.
fields = raw_result.split(',')
if len(fields) == 4:
interim_result = float(fields[0])
More information about the netperf-dev
mailing list