1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-08-02 06:08:23 +00:00

Whitespace cleanup

* remove trailing whitespace
* remove empty lines at the end of files
This commit is contained in:
Lars Kruse 2018-08-02 02:03:42 +02:00
parent ef851f0c34
commit 17f784270a
604 changed files with 2927 additions and 2945 deletions

View file

@ -26,7 +26,7 @@
if [ "$1" = "autoconf" ] ; then
if [ "$1" = "autoconf" ] ; then
if [ -n "$procs" ] ; then
echo "yes"
else
@ -49,13 +49,13 @@ 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
@ -64,14 +64,14 @@ fi
for proc in $procs ; do {
cproc=${proc//[^A-Za-z0-9_]/_}
ps axo 'pcpu,comm,command' | grep -v grep | grep "$proc" | LC_ALL=us_US awk '
BEGIN {
SUM=0
BEGIN {
SUM=0
}
{
SUM+=$1
{
SUM+=$1
}
END {
print "'${cproc}'.value "SUM
END {
print "'${cproc}'.value "SUM
}
'
}