merge/resync-2025-09-08 #7

Merged
ahuston-0 merged 57 commits from merge/resync-2025-09-08 into add-gitea-pulls 2025-09-07 23:41:45 -04:00
Showing only changes of commit 5014274c99 - Show all commits

View File

@@ -147,7 +147,11 @@ BuildOutput getBuildOutput(
continue; continue;
BuildMetric metric; BuildMetric metric;
metric.name = fields[0]; metric.name = fields[0];
metric.value = atof(fields[1].c_str()); // FIXME try {
metric.value = std::stod(fields[1]);
} catch (...) {
continue; // skip this metric
}
metric.unit = fields.size() >= 3 ? fields[2] : ""; metric.unit = fields.size() >= 3 ? fields[2] : "";
if (!std::regex_match(metric.unit, std::regex("[a-zA-Z0-9._%-]+"))) if (!std::regex_match(metric.unit, std::regex("[a-zA-Z0-9._%-]+")))
metric.unit = ""; metric.unit = "";