Skip to content

Commit

Permalink
Increase max length of ACPI temp (fixes #977)
Browse files Browse the repository at this point in the history
  • Loading branch information
brndnmtthws committed Mar 21, 2024
1 parent 174aa63 commit d2b756c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1844,7 +1844,7 @@ static double last_acpi_temp_time;

// the maximum length of the string inside a ACPI_THERMAL_FORMAT file including
// the ending 0
#define MAXTHERMZONELEN 6
#define MAXTHERMZONELEN 7

double get_acpi_temperature(int fd) {
if (fd <= 0) { return 0; }
Expand Down

0 comments on commit d2b756c

Please sign in to comment.