summaryrefslogtreecommitdiffstats
path: root/SysArchMeter.h
diff options
context:
space:
mode:
authorahgamut <41098605+ahgamut@users.noreply.github.com>2021-01-27 15:15:48 +0530
committerBenBE <BenBE@geshi.org>2021-01-31 20:08:09 +0100
commit51e79ddc07c0b3e070b5fe395703ce7ffe1878b9 (patch)
tree247d028a3be0a3e63ac64bd8bd1438647bf379e5 /SysArchMeter.h
parent7bfa466abe65ff14d530ae16c344cdc06d5145ea (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 'SysArchMeter.h')
-rw-r--r--SysArchMeter.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/SysArchMeter.h b/SysArchMeter.h
new file mode 100644
index 00000000..fa6adfe3
--- /dev/null
+++ b/SysArchMeter.h
@@ -0,0 +1,14 @@
+#ifndef HEADER_SysArchMeter
+#define HEADER_SysArchMeter
+/*
+htop - SysArchMeter.h
+(C) 2021 htop dev team
+Released under the GNU GPLv2, see the COPYING file
+in the source distribution for its full text.
+*/
+#include "Meter.h"
+
+
+extern const MeterClass SysArchMeter_class;
+
+#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy