Skip to content

Commit 9eb3dba

Browse files
fix gram_percentage.sh when showing ram usage of multi GPUs (#76)
1 parent 8f52392 commit 9eb3dba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/gram_percentage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ print_gram_percentage() {
1818
echo "No GPU"
1919
return
2020
fi
21-
echo "$loads" | awk -v format="$gram_percentage_format" '{used+=$1; tot+=$2} END {printf format, 100*$1/$2}'
21+
echo "$loads" | awk -v format="$gram_percentage_format" '{used+=$1; tot+=$2} END {printf format, 100*used/tot}'
2222
}
2323

2424
main() {

0 commit comments

Comments
 (0)