Skip to content

Commit

Permalink
Merge pull request #430 from leeclemens/master
Browse files Browse the repository at this point in the history
append newline to support _mem and multiple GPUs
  • Loading branch information
steveschnepp committed Feb 18, 2014
2 parents c3370cf + 7713329 commit f88b111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/gpu/nvidia_gpu_
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ case $name in
totalMemGpu=`echo "$totalMemGpus" | sed -n $(( $nGpusCounter + 1 ))p`
usedMemGpu=`echo "$usedMemGpus" | sed -n $(( $nGpusCounter + 1 ))p`
percentMemUsed=$(( $usedMemGpu * 100 / $totalMemGpu ))
valueGpus="${valueGpus}${percentMemUsed}"
valueGpus="${valueGpus}${percentMemUsed}"$'\n'
: $(( nGpusCounter = $nGpusCounter + 1 ))
done
;;
Expand Down

1 comment on commit f88b111

@asgh
Copy link
Contributor

@asgh asgh commented on f88b111 Sep 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is a bashism - if you want to use this you need use /bin/bash not /bin/sh

I added pull request #534

Please sign in to comment.