提交 e5bb64c0 编写于 作者: 李寅

Replace atof to strtof

上级 7a79a9cf
......@@ -84,7 +84,7 @@ int GetCPUMaxFreq(std::vector<float> *max_freqs) {
}
std::string line;
if (std::getline(f, line)) {
float freq = atof(line.c_str());
float freq = strtof(line.c_str(), nullptr);
max_freqs->push_back(freq);
}
if (f.bad()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册