Projet

Général

Profil

Révision d8dad713

IDd8dad7136221d5b4c9512d48f647dcfd25a0ab36
Parent 56573f46
Enfant de2705ac

Ajouté par asgh il y a plus de 11 ans

Fix memory usage check

Change "FB Memory Usage" to just "Memory Usage" - this will also work on an old version that still uses the "FB" terminology.

Voir les différences:

plugins/gpu/nvidia_gpu_
127 127
			;;
128 128
		mem)
129 129
			# First determine total memory of each GPU...
130
			gpusTotalMemOutput=`echo "$smiOutput" | grep -A 3 "FB Memory Usage" | grep "Total" | cut -d : -f 2 | tr -d ' '`
130
			gpusTotalMemOutput=`echo "$smiOutput" | grep -A 3 "Memory Usage" | grep "Total" | cut -d : -f 2 | tr -d ' '`
131 131
			gpusTotalMem=''
132 132
			nGpusCounter=0
133 133
			while [ $nGpusCounter -lt $nGpus ]
......
189 189
		valueGpus=`echo "$smiOutput" | grep -A 1 "Temperature" | grep "Gpu" | cut -d : -f 2 | cut -d ' ' -f 2`
190 190
		;;
191 191
	mem)
192
		totalMemGpus=`echo "$smiOutput" | grep -A 3 "FB Memory Usage" | grep "Total" | cut -d : -f 2 | cut -d ' ' -f 2`
193
		usedMemGpus=`echo "$smiOutput" | grep -A 3 "FB Memory Usage" | grep "Used" | cut -d : -f 2 | cut -d ' ' -f 2`
192
		totalMemGpus=`echo "$smiOutput" | grep -A 3 "Memory Usage" | grep "Total" | cut -d : -f 2 | cut -d ' ' -f 2`
193
		usedMemGpus=`echo "$smiOutput" | grep -A 3 "Memory Usage" | grep "Used" | cut -d : -f 2 | cut -d ' ' -f 2`
194 194
		valueGpus=''
195 195
		nGpusCounter=0
196 196
		while [ $nGpusCounter -lt $nGpus ]

Formats disponibles : Unified diff