[#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.
This commit is contained in:
ahgamut
2021-01-27 15:15:48 +05:30
committed by BenBE
parent 7bfa466abe
commit 51e79ddc07
10 changed files with 113 additions and 0 deletions

View File

@ -19,6 +19,7 @@ in the source distribution for its full text.
#include "DateMeter.h"
#include "DateTimeMeter.h"
#include "HostnameMeter.h"
#include "SysArchMeter.h"
#include "DragonFlyBSDProcess.h"
#include "DragonFlyBSDProcessList.h"
@ -85,6 +86,7 @@ const MeterClass* const Platform_meterTypes[] = {
&UptimeMeter_class,
&BatteryMeter_class,
&HostnameMeter_class,
&SysArchMeter_class,
&AllCPUsMeter_class,
&AllCPUs2Meter_class,
&AllCPUs4Meter_class,