We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f52392 commit 9eb3dbaCopy full SHA for 9eb3dba
scripts/gram_percentage.sh
@@ -18,7 +18,7 @@ print_gram_percentage() {
18
echo "No GPU"
19
return
20
fi
21
- echo "$loads" | awk -v format="$gram_percentage_format" '{used+=$1; tot+=$2} END {printf format, 100*$1/$2}'
+ echo "$loads" | awk -v format="$gram_percentage_format" '{used+=$1; tot+=$2} END {printf format, 100*used/tot}'
22
}
23
24
main() {
0 commit comments