temps: oops.

This commit is contained in:
Alastair Poole 2020-10-08 13:44:50 +01:00
parent 5fa570c123
commit b481435d3d
1 changed files with 2 additions and 2 deletions

View File

@ -366,12 +366,12 @@ system_cpu_n_temperature_get(int n)
return _cpu_n_temperature_read(n); return _cpu_n_temperature_read(n);
#elif defined(__FreeBSD__) || defined(__DragonFly__) #elif defined(__FreeBSD__) || defined(__DragonFly__)
static int init = 1; static int init = 0;
if (!init) if (!init)
{ {
memset(&_core_temps, 0, sizeof(_core_temps)); memset(&_core_temps, 0, sizeof(_core_temps));
init = 0; init = 1;
} }
return _cpu_n_temperature_read(n); return _cpu_n_temperature_read(n);