2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

deletet unnecessary output "\n"

Output looked like this:

root@htpc:/etc/munin/plugins# ./nvidia_gpu_mem
mem0.value 0\n
This commit is contained in:
CWempe 2013-02-12 15:30:59 +01:00
parent a3dadfa699
commit 7688a3f5ba

View File

@ -180,7 +180,7 @@ case $name in
totalMemGpu=`echo "$totalMemGpus" | sed -n $(( $nGpusCounter + 1 ))p` totalMemGpu=`echo "$totalMemGpus" | sed -n $(( $nGpusCounter + 1 ))p`
usedMemGpu=`echo "$usedMemGpus" | sed -n $(( $nGpusCounter + 1 ))p` usedMemGpu=`echo "$usedMemGpus" | sed -n $(( $nGpusCounter + 1 ))p`
percentMemUsed=$(( $usedMemGpu * 100 / $totalMemGpu )) percentMemUsed=$(( $usedMemGpu * 100 / $totalMemGpu ))
valueGpus="${valueGpus}${percentMemUsed}\n" valueGpus="${valueGpus}${percentMemUsed}"
: $(( nGpusCounter = $nGpusCounter + 1 )) : $(( nGpusCounter = $nGpusCounter + 1 ))
done done
;; ;;