- memset(&je, 0, sizeof(je));
-
- if (!calc_thread_status(&je))
- return;
-
- if (je.eta_sec != INT_MAX && je.elapsed_sec) {
- perc = (double) je.elapsed_sec / (double) (je.elapsed_sec + je.eta_sec);
- eta_to_str(eta_str, je.eta_sec);
+ if (je->eta_sec != INT_MAX && je->elapsed_sec) {
+ perc = (double) je->elapsed_sec / (double) (je->elapsed_sec + je->eta_sec);
+ eta_to_str(eta_str, je->eta_sec);