aboutsummaryrefslogtreecommitdiff
path: root/crosperf/experiment_factory.py
diff options
context:
space:
mode:
Diffstat (limited to 'crosperf/experiment_factory.py')
-rw-r--r--crosperf/experiment_factory.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/crosperf/experiment_factory.py b/crosperf/experiment_factory.py
index 20e0fdba..3a1efb83 100644
--- a/crosperf/experiment_factory.py
+++ b/crosperf/experiment_factory.py
@@ -205,8 +205,8 @@ class ExperimentFactory(object):
if run_local:
raise RuntimeError('run_local must be set to False to use CWP '
'approximation')
- if weight > 1 or weight < 0:
- raise RuntimeError('Weight should be a float between 0 and 1')
+ if weight < 0:
+ raise RuntimeError('Weight should be a float no less than 0')
elif cwp_dso:
raise RuntimeError('With DSO specified, each benchmark should have a '
'weight')