--- Available.pm 2003/10/06 20:59:11 1.8 +++ Available.pm 2003/10/06 22:32:25 1.9 @@ -332,6 +332,8 @@ } elsif($self->day_in_interval($to) && $loop_start_time < $loop_end_time) { $total += $sec_in_day; } + } else { + $total = abs($total - $self->downtime($to)); } print STDERR "total: ",fmt_interval($total)," (final)\n" if ($debug);