client: don't use FLOPS info for completion estimates of NCI jobs

This commit is contained in:
David Anderson 2013-04-25 01:09:08 -07:00
parent 0c430ce1fa
commit c26f05a516
1 changed files with 10 additions and 0 deletions

View File

@ -544,6 +544,16 @@ double RESULT::estimated_runtime() {
double RESULT::estimated_runtime_remaining() {
if (computing_done()) return 0;
ACTIVE_TASK* atp = gstate.lookup_active_task_by_result(this);
if (app->non_cpu_intensive) {
if (atp && atp->fraction_done>0) {
double est_dur = atp->fraction_done_elapsed_time / atp->fraction_done;
double x = est_dur - atp->elapsed_time;
if (x <= 0) x = 1;
return x;
}
return 0;
}
if (atp) {
#ifdef SIM
return sim_flops_left/avp->flops;