Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Disabling Time Estimate in Smart::Comments

by monkfan (Curate)
on Dec 04, 2006 at 09:27 UTC ( [id://587607]=perlquestion: print w/replies, xml ) Need Help??

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://587607]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-19 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found