Commit 997a4fbb authored by Mike Hibler's avatar Mike Hibler
Browse files

really turn off use of load metrics when disabled via sitevars

parent 5b7289a8
#!/usr/bin/perl -w
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
# All rights reserved.
#
use English;
......@@ -226,10 +226,10 @@ sub InsertMetrics($%)
# Load must be under MAXLOAD, favor those with lower load
#
$load = $metrics{$LOADMETRIC};
if ($MAXLOAD > 0) {
$scaled = $load / $MAXLOAD;
if ($MAXLOAD == 1000) {
$scaled = 0;
} else {
$scaled = 999.0;
$scaled = $load / $MAXLOAD;
}
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment