From b481435d3d7075e0b2967f41997db59cd5f5055b Mon Sep 17 00:00:00 2001 From: Alastair Poole Date: Thu, 8 Oct 2020 13:44:50 +0100 Subject: [PATCH] temps: oops. --- src/bin/system/machine/cpu.bogox | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/system/machine/cpu.bogox b/src/bin/system/machine/cpu.bogox index 22a2411..34950fd 100644 --- a/src/bin/system/machine/cpu.bogox +++ b/src/bin/system/machine/cpu.bogox @@ -366,12 +366,12 @@ system_cpu_n_temperature_get(int n) return _cpu_n_temperature_read(n); #elif defined(__FreeBSD__) || defined(__DragonFly__) - static int init = 1; + static int init = 0; if (!init) { memset(&_core_temps, 0, sizeof(_core_temps)); - init = 0; + init = 1; } return _cpu_n_temperature_read(n);