Projet

Général

Profil

Révision 77133297

ID771332975560c192937300e5676c14caef069358
Parent 2a31f93e
Enfant f88b1110

Ajouté par leeclemens il y a presque 12 ans

append newline to support _mem and multiple GPUs

Memory used percentages were being concatenated into a single string if multiple GPUs were present, e.g. both using 30% would print mem0.value 3030 mem1.value

Voir les différences:

plugins/gpu/nvidia_gpu_
180 180
			totalMemGpu=`echo "$totalMemGpus" | sed -n $(( $nGpusCounter + 1 ))p`
181 181
			usedMemGpu=`echo "$usedMemGpus" | sed -n $(( $nGpusCounter + 1 ))p`
182 182
			percentMemUsed=$(( $usedMemGpu * 100 / $totalMemGpu ))
183
			valueGpus="${valueGpus}${percentMemUsed}"
183
			valueGpus="${valueGpus}${percentMemUsed}"$'\n'
184 184
			: $(( nGpusCounter = $nGpusCounter + 1 ))
185 185
		done
186 186
		;;

Formats disponibles : Unified diff