[LNT] r213270 - Fix crash when no result to compare against
Yi Kong
Yi.Kong at arm.com
Thu Jul 17 08:50:43 PDT 2014
Author: kongyi
Date: Thu Jul 17 10:50:43 2014
New Revision: 213270
URL: http://llvm.org/viewvc/llvm-project?rev=213270&view=rev
Log:
Fix crash when no result to compare against
Modified:
lnt/trunk/lnt/server/reporting/analysis.py
Modified: lnt/trunk/lnt/server/reporting/analysis.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/reporting/analysis.py?rev=213270&r1=213269&r2=213270&view=diff
==============================================================================
--- lnt/trunk/lnt/server/reporting/analysis.py (original)
+++ lnt/trunk/lnt/server/reporting/analysis.py Thu Jul 17 10:50:43 2014
@@ -248,10 +248,10 @@ class RunInfo(object):
# Smallest possible change we ever look for.
MIN_VALUE = 0.00001
- if not run_values:
- return None
+ values = [v + MIN_VALUE for v in run_values if v]
- values = [v + MIN_VALUE for v in run_values]
+ if not values:
+ return None
return util.geometric_mean(values) - MIN_VALUE
More information about the llvm-commits
mailing list