Commit 1f62df8b authored by Thiago H. S. Picharski's avatar Thiago H. S. Picharski Committed by Josiney de Souza

disk.tree: Modified hdd used value from percentage to GiB scale

Signed-off-by: default avatarThiago H. S. Picharski <thsp08@c3sl.ufpr.br>
Acked-by: default avatarDanilo Kiyoshi Simizu Yorinori <danilok@c3sl.ufpr.br>
Acked-by: default avatarDiego Pasqualin <dgp06@c3sl.ufpr.br>
Signed-off-by: default avatarJosiney de Souza <josineys@c3sl.ufpr.br>
parent 8215b308
......@@ -84,9 +84,8 @@ if test -d "/dev/disk/by-id/"; then
done
fi
# Percentage used of disk
disks="${disks}<used value=\"$((${diskUsed}*102400/${diskSize}
))\" type=\"int\"/>"
# Disk used value in GiB scale
disks="${disks}<used value=\"$((${diskUsed}/1048576))\" type=\"int\"/>"
disks="${disks}</hdd${number}>"
(( number=${number}+1 ))
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment