@@ -614,10 +614,11 @@ int SCHEDULER_REPLY::parse(FILE* in, PROJECT* project) {
614614 }
615615 }
616616
617- // if project is attached via a dynamic AM (like Science United)
618- // we get user credit from the AM, not the project
617+ // if project is attached via a dynamic AM (like Science United),
618+ // ignore project-supplied user credit;
619+ // we get it from the AM, not the project
619620 //
620- bool ignore_host_credit = project->attached_via_acct_mgr && gstate.acct_mgr_info .dynamic ;
621+ bool ignore_user_credit = project->attached_via_acct_mgr && gstate.acct_mgr_info .dynamic ;
621622
622623 // First line should either be tag (HTTP 1.0) or
623624 // hex length of response (HTTP 1.1)
@@ -673,8 +674,8 @@ int SCHEDULER_REPLY::parse(FILE* in, PROJECT* project) {
673674 }
674675 else if (xp.parse_str (" symstore" , project->symstore , sizeof (project->symstore ))) continue ;
675676 else if (xp.parse_str (" user_name" , project->user_name , sizeof (project->user_name ))) continue ;
676- else if (!ignore_host_credit && xp.parse_double (" user_total_credit" , project->user_total_credit )) continue ;
677- else if (!ignore_host_credit && xp.parse_double (" user_expavg_credit" , project->user_expavg_credit )) continue ;
677+ else if (!ignore_user_credit && xp.parse_double (" user_total_credit" , project->user_total_credit )) continue ;
678+ else if (!ignore_user_credit && xp.parse_double (" user_expavg_credit" , project->user_expavg_credit )) continue ;
678679 else if (xp.parse_double (" user_create_time" , project->user_create_time )) continue ;
679680 else if (xp.parse_double (" cpid_time" , cpid_time)) continue ;
680681 else if (xp.parse_str (" team_name" , project->team_name , sizeof (project->team_name ))) continue ;
0 commit comments