diff --git a/cpp/src/metrics/SystemInfo.cpp b/cpp/src/metrics/SystemInfo.cpp index a49c3070a66a330e3e96c9c08a03181e272d9289..bf2b0407a948cdac9e624f20d75eb350c55a635e 100644 --- a/cpp/src/metrics/SystemInfo.cpp +++ b/cpp/src/metrics/SystemInfo.cpp @@ -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);