mirror of https://github.com/milvus-io/milvus.git
Merge branch 'fix_thermal_bug' into 'branch-0.5.0'
fix stupid error See merge request megasearch/milvus!673 Former-commit-id: 90c96f9f742a8c013a4956ad7f3c3e52c61d83c7pull/191/head
commit
e6062e72e4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue