1
0
Fork 0
mirror of https://github.com/NixOS/hydra.git synced 2024-10-17 16:37:26 -04:00

hydra-queue-runner: fix compilation warning

instead of converting to double, we can convert to float right away.
This commit is contained in:
Jörg Thalheim 2024-09-20 07:50:24 +02:00
parent b6f44b5cd0
commit 2dad87ad89

View file

@ -164,7 +164,7 @@ void State::parseMachines(const std::string & contents)
? string2Int<MaxJobs>(tokens[3]).value()
: 1,
// `speedFactor`
atof(tokens[4].c_str()),
std::stof(tokens[4].c_str()),
// `supportedFeatures`
std::move(supportedFeatures),
// `mandatoryFeatures`