From 4c22c4c6eb6f23f270c9d4b180287d351c946502 Mon Sep 17 00:00:00 2001 From: Joachim Meyer Date: Tue, 7 Feb 2023 17:01:34 +0100 Subject: [PATCH] Need all 8 zeros for cc-metric-collector. --- src/htcondor_cc_sync_plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/htcondor_cc_sync_plugin.cpp b/src/htcondor_cc_sync_plugin.cpp index 0cdf24a..08293bb 100644 --- a/src/htcondor_cc_sync_plugin.cpp +++ b/src/htcondor_cc_sync_plugin.cpp @@ -296,7 +296,7 @@ CCSyncPlugin::getAccelerators(const CondorJob &job, while (std::getline(gpuStream, gpu, ',')) { if (auto gpuIt = hostIt->second.find(gpu); gpuIt != hostIt->second.end()) { - gpus.push_back(gpuIt->second); + gpus.push_back("0000" + gpuIt->second); } else { dprintf(D_ALWAYS, "Didn't find GPU '%s' for '%s'\n", gpu.c_str(), hostname.c_str()); @@ -400,7 +400,7 @@ void CCSyncPlugin::endTransaction() { continue; // not yet ready dprintf(D_VERBOSE, "JobStatus: %s\n", job["JobStatus"].c_str()); - int state = std::stoi(job["JobStatus"]), lastState; + int state = std::stoi(job["JobStatus"]), lastState{}; if (auto lastStateIt = job.find("LastJobStatus"); lastStateIt != job.end()) {