/[webpac]/trunk2/lib/WebPAC.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk2/lib/WebPAC.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 453 by dpavlin, Wed Sep 15 21:21:36 2004 UTC revision 454 by dpavlin, Wed Sep 15 22:36:23 2004 UTC
# Line 352  sub progress_bar { Line 352  sub progress_bar {
352    
353          $self->{'last_pcnt'} ||= 1;          $self->{'last_pcnt'} ||= 1;
354    
355          my $p = int($curr * 100 / $max);          my $p = int($curr * 100 / $max) || 1;
356    
357          # reset on re-run          # reset on re-run
358          if ($p < $self->{'last_pcnt'}) {          if ($p < $self->{'last_pcnt'}) {

Legend:
Removed from v.453  
changed lines
  Added in v.454

  ViewVC Help
Powered by ViewVC 1.1.26