Skip to content

Commit 7a3afa4

Browse files
committed
PhysicalDisk (Linux): don't report obviously invalid temp
1 parent b257134 commit 7a3afa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detection/physicaldisk/physicaldisk_linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ static double detectNvmeTemp(int devfd)
2121
{
2222
buffer[size] = '\0';
2323
double temp = strtod(buffer, NULL);
24-
return temp > 0 ? temp / 1000 : FF_PHYSICALDISK_TEMP_UNSET;
24+
return temp > 0 && temp < 10000000 /*VMware*/ ? temp / 1000 : FF_PHYSICALDISK_TEMP_UNSET;
2525
}
2626
}
2727

0 commit comments

Comments
 (0)