Commit 05f4e6b8 authored by Gary Wong's avatar Gary Wong

Do not generate typelimit entries for node types with no reservations.

parent 92fa02dd
......@@ -844,12 +844,10 @@ sub MaxSwapInMap($$) {
my ($class, $experiment) = @_;
my %counts = ();
foreach my $typeinfo ( NodeType->AllTypes() ) {
next if( $typeinfo->isvirtnode() || $typeinfo->isdynamic() );
my $type = $typeinfo->type();
my $query_result = DBQueryFatal( "SELECT DISTINCT( type ) FROM " .
"future_reservations" );
while( my ($type) = $query_result->fetchrow_array() ) {
$counts{ $type } = MaxSwapIn( $class, $experiment, $type );
}
......
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