Commit ad2e03fb authored by Leigh B Stoller's avatar Leigh B Stoller

Minor bug fix.

parent 9e638e0a
......@@ -1474,6 +1474,9 @@ sub ReservationPrediction($)
$freecounts->{$type} = Reservation->FreeCount($type, \@projlist);
$forecast->{$type} = [ Reservation->Forecast($type, \@projlist) ];
}
goto nopids
if (!@projlist);
foreach my $type (Reservation->ReservableTypes()) {
my $type = $type->type();
......@@ -1521,6 +1524,7 @@ sub ReservationPrediction($)
}
push(@{$upcoming->{$epid}}, $ref)
}
nopids:
my $blob = {
"freecounts" => $freecounts,
"forecast" => $forecast,
......
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