提交 bc62ede8 编写于 作者: H Heisenberg

fix stupid error


Former-commit-id: b49098aae7927cc67c241441e51632d63bf06fe2
上级 430b4858
......@@ -263,8 +263,8 @@ SystemInfo::CPUTemperature() {
object += "/temp1_input";
FILE *file = fopen(object.c_str(), "r");
if (file == nullptr) {
SERVER_LOG_ERROR << "Could not open temperature file"
exit(1);
SERVER_LOG_ERROR << "Could not open temperature file";
return result;
}
float temp;
fscanf(file, "%f", &temp);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册