fix gpu power monitor
This commit is contained in:
parent
0f345b2ded
commit
d7fce8ee74
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ get_gpu()
|
||||||
{
|
{
|
||||||
gpu=$(get_platform)
|
gpu=$(get_platform)
|
||||||
if [[ "$gpu" == NVIDIA ]]; then
|
if [[ "$gpu" == NVIDIA ]]; then
|
||||||
usage=$(nvidia-smi --query-gpu=power.draw,power.limit --format=csv,no header,nounits | awk '{ draw += $0; max +=$2 } END { printf("%dW/%dW\n", draw, max) }')
|
usage=$(nvidia-smi --query-gpu=power.draw,power.limit --format=csv,noheader,nounits | awk '{ draw += $0; max +=$2 } END { printf("%dW/%dW\n", draw, max) }')
|
||||||
|
|
||||||
else
|
else
|
||||||
usage='unknown'
|
usage='unknown'
|
||||||
|
|
Loading…
Reference in a new issue