Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

status: print roughly estimated remaining time #2017

Closed
wants to merge 1 commit into from

Conversation

dmantipov
Copy link

Add NINJA_STATUS environment variable format specifier
to print the roughly estimated remaining time.

Signed-off-by: Dmitry Antipov dantipov@cloudlinux.com

Add NINJA_STATUS environment variable format specifier
to print the roughly estimated remaining time.

Signed-off-by: Dmitry Antipov <dantipov@cloudlinux.com>
src/status.cc Show resolved Hide resolved
case 'R': {
snprintf(buf, sizeof(buf), "%.1f",
((time_millis_ / 1e3) / finished_edges_) *
(total_edges_ - finished_edges_));

This comment was marked as abuse.

@ilyapopov
Copy link

See also #1963 with a more comprehensive approach.

@jhasse
Copy link
Collaborator

jhasse commented Sep 21, 2021

Closing in favor of #1963.

@jhasse jhasse closed this Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants