monkfan has asked for the wisdom of the Perl Monks concerning the following question:

Is there a way to do it with this great module?
Namely, I _just_ want the progress bar without the time estimate shown.

Regards,
Edward
  • Comment on Disabling Time Estimate in Smart::Comments

Replies are listed 'Best First'.
Re: Disabling Time Estimate in Smart::Comments
by virtualsue (Vicar) on Dec 04, 2006 at 09:55 UTC
    I've just looked at the perldoc for Smart::Comments, and it looks to me as though time values won't be part of the output unless the 'smart comment' in the code actually asks for it. Have you tried it yet? Do you have any code you can show us?
Re: Disabling Time Estimate in Smart::Comments
by lin0 (Curate) on Dec 04, 2006 at 14:38 UTC

    Hi Edward,

    You could play with the values of $showstarttime and $showmaxtime in lines 15 and 16 of the file Comments.pm (I am assuming you have, already, installed the module, didn't you?)

    The default values (in seconds) for those variables are:

    my $showstarttime = 6; # How long before showing time-remaining + estimate my $showmaxtime = 10; # Don't start estimate if less than this + to go

    I would suggest you put a large value for both variables

    I hope that helps

    lin0