MCPcopy Index your code
hub / github.com/Xfennec/progress / print_eta

Function print_eta

progress.c:891–904  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

889}
890
891void print_eta(time_t seconds)
892{
893struct tm *p;
894
895if (!seconds)
896 return;
897
898p = gmtime(&seconds);
899
900nprintf(" remaining ");
901if (p->tm_yday)
902 nprintf("%d day%s ", p->tm_yday, p->tm_yday > 1 ? "s" : "");
903nprintf("%d:%02d:%02d", p->tm_hour, p->tm_min, p->tm_sec);
904}
905
906void copy_and_clean_results(result_t *results, int result_count, char copy)
907{

Callers 1

monitor_processesFunction · 0.85

Calls 1

nprintfFunction · 0.85

Tested by

no test coverage detected