localPackages.hpcstat: fix

This commit is contained in:
2024-05-12 11:00:06 +08:00
parent 788f44f6a0
commit ba2ac91a4d

View File

@@ -233,7 +233,7 @@ namespace hpcstat::sql
if (!job_in_submit) key = { "", {} };
else key = std::make_pair(job_in_submit->Key, job_in_submit->Subaccount);
stat[key].CpuTime += it.CpuTime / 3600;
if (it.JobResult == "Done") stat[key].FinishJobSuccess++;
if (it.JobResult == "DONE") stat[key].FinishJobSuccess++;
else stat[key].FinishJobFailed++;
}
// LoginInteractive & LoginNonInteractive