mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Whitespace cleanup
* remove trailing whitespace * remove empty lines at the end of files
This commit is contained in:
parent
ef851f0c34
commit
17f784270a
604 changed files with 2927 additions and 2945 deletions
|
@ -26,7 +26,7 @@
|
|||
|
||||
|
||||
|
||||
if [ "$1" = "autoconf" ] ; then
|
||||
if [ "$1" = "autoconf" ] ; then
|
||||
if [ -n "$procs" ] ; then
|
||||
echo "yes"
|
||||
else
|
||||
|
@ -49,23 +49,23 @@ if [ "$1" = "config" ] ; then
|
|||
echo 'graph_scale no'
|
||||
echo 'graph_period second'
|
||||
echo "graph_order $cprocs"
|
||||
|
||||
for proc in $procs; do
|
||||
|
||||
for proc in $procs; do
|
||||
cproc=${proc//[^A-Za-z0-9_]/_}
|
||||
echo "${cproc}.label $proc"
|
||||
echo "${cproc}.info CPU used by process $proc"
|
||||
done ;
|
||||
|
||||
|
||||
exit
|
||||
fi
|
||||
|
||||
for proc in $procs ; do {
|
||||
cproc=${proc//[^A-Za-z0-9_]/_}
|
||||
ps axo '%mem,comm,command' | grep -v grep | grep "$proc" | LC_ALL=us_US awk '
|
||||
BEGIN {
|
||||
SUM=0
|
||||
BEGIN {
|
||||
SUM=0
|
||||
}
|
||||
{
|
||||
{
|
||||
SUM+=1
|
||||
COMM=$2
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue