diff options
author | ahgamut <41098605+ahgamut@users.noreply.github.com> | 2021-01-27 15:15:48 +0530 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-01-31 20:08:09 +0100 |
commit | 51e79ddc07c0b3e070b5fe395703ce7ffe1878b9 (patch) | |
tree | 247d028a3be0a3e63ac64bd8bd1438647bf379e5 /freebsd/Platform.c | |
parent | 7bfa466abe65ff14d530ae16c344cdc06d5145ea (diff) |
[#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.
Diffstat (limited to 'freebsd/Platform.c')
-rw-r--r-- | freebsd/Platform.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/freebsd/Platform.c b/freebsd/Platform.c index 934ca32f..9f8c051f 100644 --- a/freebsd/Platform.c +++ b/freebsd/Platform.c @@ -42,6 +42,7 @@ in the source distribution for its full text. #include "ProcessList.h" #include "Settings.h" #include "SwapMeter.h" +#include "SysArchMeter.h" #include "TasksMeter.h" #include "UptimeMeter.h" #include "XUtils.h" @@ -103,6 +104,7 @@ const MeterClass* const Platform_meterTypes[] = { &UptimeMeter_class, &BatteryMeter_class, &HostnameMeter_class, + &SysArchMeter_class, &AllCPUsMeter_class, &AllCPUs2Meter_class, &AllCPUs4Meter_class, |