Commit 1305a3a6 authored by Gary Wong's avatar Gary Wong

Include ALL reservations in CurrentReservations(), even fulfilled ones.

parent 9001f97e
......@@ -980,9 +980,7 @@ sub CurrentReservations($$) {
foreach my $f ( @forecast ) {
foreach my $pid ( keys ( %{$f->{'reserved'}} ) ) {
if( grep( $_ eq $pid, @$projlist ) &&
( !exists( $f->{'used'}->{$pid} ) ||
$f->{'used'}->{$pid} < $f->{'reserved'}->{$pid} ) ) {
if( grep( $_ eq $pid, @$projlist ) ) {
last if( $f->{'t'} > time );
push( @answer, { 'pid' => $pid, 'nodetype' => $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