[llvm-commits] [zorg] r122892 - /zorg/trunk/lnt/lnt/db/runinfo.py
Daniel Dunbar
daniel at zuster.org
Wed Jan 5 09:52:55 PST 2011
Author: ddunbar
Date: Wed Jan 5 11:52:55 2011
New Revision: 122892
URL: http://llvm.org/viewvc/llvm-project?rev=122892&view=rev
Log:
LNT: Fix a crash when missing run_values.
Modified:
zorg/trunk/lnt/lnt/db/runinfo.py
Modified: zorg/trunk/lnt/lnt/db/runinfo.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/db/runinfo.py?rev=122892&r1=122891&r2=122892&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/db/runinfo.py (original)
+++ zorg/trunk/lnt/lnt/db/runinfo.py Wed Jan 5 11:52:55 2011
@@ -169,7 +169,7 @@
# If we have multiple values for this run, use that to estimate the
# distribution.
- if len(run_values) > 1:
+ if run_values and len(run_values) > 1:
stddev = stats.standard_deviation(run_values)
MAD = stats.median_absolute_deviation(run_values)
else:
More information about the llvm-commits
mailing list