Skip to content

Commit

Permalink
[lib/Term/ProgressBar.pm]
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Sergot committed Apr 30, 2012
1 parent 71da267 commit 70092ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Term/ProgressBar.pm
Expand Up @@ -26,9 +26,9 @@ method update(Int $step) {
$ext ~= ' eta '~ (( $start - $!step ) * ( $.count - $step ) ).floor ~ ' s' if $.t;

if $step % ($.count/$.width).floor == 0 {
self!clear;
$!as = "$.name "~$.left~($.style x $multi)~(' ' x ($.width - $multi))~$.right~" $ext";
print $!as;
self!clear;
}
say '' if $step == $.count;

Expand Down

0 comments on commit 70092ec

Please sign in to comment.