From ee673fdc54c2905660cb7b2393f18e1a9f45f9c6 Mon Sep 17 00:00:00 2001 From: Jasper Nalbach Date: Fri, 23 Aug 2019 15:30:16 +0200 Subject: [PATCH] #23 fix --- src/benchmax/backends/SlurmBackend.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/benchmax/backends/SlurmBackend.h b/src/benchmax/backends/SlurmBackend.h index a351a258b..5a8394f25 100644 --- a/src/benchmax/backends/SlurmBackend.h +++ b/src/benchmax/backends/SlurmBackend.h @@ -66,7 +66,7 @@ class SlurmBackend: public Backend { auto& res = std::get<2>(results.back()); if (extension == ".out") { res.stdout = (*i)[3]; - res.exitCode = std::stoi(slurm::parse_result_info((*i)[3], "exitcode")); + res.exitCode = std::stoi(slurm::parse_result_info((*i)[4], "exitcode")); res.time = std::chrono::milliseconds(std::stoi(slurm::parse_result_info((*i)[4], "time"))); BENCHMAX_LOG_DEBUG("benchmax.slurm", "Got " << res << " for task " << id << " from stdout"); } else if (extension == ".err") {