From d7fce8ee744538e723cbaf8b81ee9c993c356048 Mon Sep 17 00:00:00 2001 From: Guido Kraemer Date: Wed, 26 Apr 2023 16:21:38 +0200 Subject: [PATCH] fix gpu power monitor --- scripts/gpu_power.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gpu_power.sh b/scripts/gpu_power.sh index 8ea5d13..c97e6ee 100755 --- a/scripts/gpu_power.sh +++ b/scripts/gpu_power.sh @@ -27,7 +27,7 @@ get_gpu() { gpu=$(get_platform) 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 usage='unknown'