Skip to content

Commit

Permalink
hydra-queue-runner: fix compilation warning
Browse files Browse the repository at this point in the history
instead of converting to double, we can convert to float right away.
  • Loading branch information
Mic92 committed Sep 20, 2024
1 parent b6f44b5 commit 2dad87a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hydra-queue-runner/hydra-queue-runner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 2dad87a

Please sign in to comment.