mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
[#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:
@ -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,
|
||||
|
Reference in New Issue
Block a user