From 51e79ddc07c0b3e070b5fe395703ce7ffe1878b9 Mon Sep 17 00:00:00 2001 From: ahgamut <41098605+ahgamut@users.noreply.github.com> Date: Wed, 27 Jan 2021 15:15:48 +0530 Subject: [#480] SysArchMeter to view kernel/arch info At start, SysArchMeter calls the uname function to obtain the kernel version and architecture. If available, the distro version is obtained by calling lsb_release. The obtained values are stored in static variables and used when updating the meter. --- openbsd/Platform.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openbsd') diff --git a/openbsd/Platform.c b/openbsd/Platform.c index 84a5e3d0..a50aa345 100644 --- a/openbsd/Platform.c +++ b/openbsd/Platform.c @@ -37,6 +37,7 @@ in the source distribution for its full text. #include "Settings.h" #include "SignalsPanel.h" #include "SwapMeter.h" +#include "SysArchMeter.h" #include "TasksMeter.h" #include "UptimeMeter.h" #include "XUtils.h" @@ -99,6 +100,7 @@ const MeterClass* const Platform_meterTypes[] = { &UptimeMeter_class, &BatteryMeter_class, &HostnameMeter_class, + &SysArchMeter_class, &AllCPUsMeter_class, &AllCPUs2Meter_class, &AllCPUs4Meter_class, -- cgit v1.2.3