Add --max-load. Reset instead of recreating Progress objects.

This commit is contained in:
Daniel Nichter
2011-10-19 21:08:46 -06:00
parent 79beac6eb7
commit ac9373bbff
2 changed files with 194 additions and 10 deletions

View File

@@ -114,6 +114,7 @@ sub set_callback {
sub start {
my ( $self, $start ) = @_;
$self->{start} = $self->{last_reported} = $start || time();
$self->{first_report} = 0;
}
# Provide a progress update. Pass in a callback subroutine which this code can