Skip to content

the timer starts only after the first tick #81

@manish-alphonso-tv

Description

@manish-alphonso-tv

the progress bar does not compute / report the :elapsed correctly.

bar = new progressBar (
' progress [:bar] :elapsed',
total : 10,
width : 10,
callback : function ()
{
process.exit(0);
}
);

setInterval(
function () { bar.tick(); }.
5000);

will report completion in 45 seconds, as opposed to 50 seconds (10 ticks x 5 seconds).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions