[Python-checkins] r69430 - tracker/instances/python-dev/scripts/roundup-summary
martin.v.loewis
python-checkins at python.org
Sun Feb 8 10:36:24 CET 2009
Author: martin.v.loewis
Date: Sun Feb 8 10:36:23 2009
New Revision: 69430
Log:
Issue #234: sort durations before computing the median.
Modified:
tracker/instances/python-dev/scripts/roundup-summary
Modified: tracker/instances/python-dev/scripts/roundup-summary
==============================================================================
--- tracker/instances/python-dev/scripts/roundup-summary (original)
+++ tracker/instances/python-dev/scripts/roundup-summary Sun Feb 8 10:36:23 2009
@@ -836,6 +836,7 @@
if options.debug:
print >>bugfile, 'Min duration:', durations[-1], '; max', durations[0]
averageDuration = sum(durations)/len(durations)
+ durations.sort()
medianDuration = durations[len(durations)/2]
else:
averageDuration = "N/A"
More information about the Python-checkins
mailing list