From bc62ede846faf32543627e74e4b2b7c0b05ace68 Mon Sep 17 00:00:00 2001 From: Heisenberg Date: Wed, 9 Oct 2019 17:19:47 +0800 Subject: [PATCH] fix stupid error Former-commit-id: b49098aae7927cc67c241441e51632d63bf06fe2 --- cpp/src/metrics/SystemInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/src/metrics/SystemInfo.cpp b/cpp/src/metrics/SystemInfo.cpp index a49c3070a6..bf2b0407a9 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);