fix stupid error

Former-commit-id: b49098aae7927cc67c241441e51632d63bf06fe2
pull/191/head
Heisenberg 2019-10-09 17:19:47 +08:00
parent 430b4858b6
commit bc62ede846
1 changed files with 2 additions and 2 deletions

View File

@ -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);