From 5fa570c123152b0718e7e341b36efa199afe633a Mon Sep 17 00:00:00 2001 From: Alastair Poole Date: Thu, 8 Oct 2020 13:43:02 +0100 Subject: [PATCH] fbsd: dfly misssed --- src/bin/system/machine/cpu.bogox | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bin/system/machine/cpu.bogox b/src/bin/system/machine/cpu.bogox index e1e239c..22a2411 100644 --- a/src/bin/system/machine/cpu.bogox +++ b/src/bin/system/machine/cpu.bogox @@ -279,7 +279,6 @@ system_cpu_usage_get(int *ncpu) return system_cpu_usage_delayed_get(ncpu, 1000000); } - static char _core_temps[256][512]; static char _hwmon_path[256]; @@ -294,7 +293,7 @@ _cpu_n_temperature_read(int n) temp = atoi(b) / 1000; free(b); } -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD__) || defined(__DragonFly__) int value; size_t len = sizeof(value);