Commit Graph

7 Commits

Author SHA1 Message Date
Lars Kruse
0600bbf113 Simplify grep-based conditionals
The "-q" argument avoids the requirement for output redirections.
2020-02-08 23:39:44 +01:00
Lars Kruse
94a695860d Simplify checks for empty or non-empty strings 2020-02-08 23:39:44 +01:00
Lars Kruse
5190244c92 Simplify arithemtic shell expressions
Variable names within arithmetic expressions are evaluated even without
the '$' prefix.
2020-02-08 23:39:44 +01:00
Lars Kruse
dc242d3631 Plugin cpu: fix handling of more than ten CPUs
Previously only CPU entries with a single digit (0..9) were parsed.
The improved regular expression simplifies the calculation of the CPU
count, since the combined entry ("cpu" without digits) is skipped.
2020-02-08 23:39:44 +01:00
Lars Kruse
14251d6791 Add missing quoting 2020-02-08 23:39:44 +01:00
runesk
fc1c90b1a2 Keith Taylor submitted a patch to support older kernels ID: 2716990
git-svn-id: svn://svn.code.sf.net/p/muninlite/code/muninlite@29 35caa317-6b62-4e8a-81c0-b04f0c356266
2011-01-14 20:52:13 +00:00
runesk
7c8bd1e394 Import
git-svn-id: svn://svn.code.sf.net/p/muninlite/code/muninlite@1 35caa317-6b62-4e8a-81c0-b04f0c356266
2007-06-11 15:45:16 +00:00