New changes

This commit is contained in:
2025-10-28 12:56:01 +01:00
parent cc00d77add
commit 764b3a7f53
6 changed files with 55 additions and 4 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
#!/bin/bash
if [ -f /sys/module/amdgpu/drivers/pci:amdgpu/0000:28:00.0/gpu_busy_percent ]; then
usage=$(awk '{print $1}' /sys/module/amdgpu/drivers/pci:amdgpu/0000:28:00.0/gpu_busy_percent)
if [ -f /sys/module/amdgpu/drivers/pci:amdgpu/0000:2b:00.0/gpu_busy_percent ]; then
usage=$(awk '{print $1}' /sys/module/amdgpu/drivers/pci:amdgpu/0000:2b:00.0/gpu_busy_percent)
echo "${usage}%"
else
echo "N/A"