fix: up & down torrents
This commit is contained in:
parent
1ca05f7f74
commit
2e215e97d0
@ -15,6 +15,9 @@ pid="$(pidof transmission-daemon)"
|
|||||||
out="$(transmission-remote --list)"
|
out="$(transmission-remote --list)"
|
||||||
cntd="$(echo "$out" | grep -e "Downloading" | wc -l)"
|
cntd="$(echo "$out" | grep -e "Downloading" | wc -l)"
|
||||||
cntu="$(echo "$out" | grep -e "Seeding" | wc -l)"
|
cntu="$(echo "$out" | grep -e "Seeding" | wc -l)"
|
||||||
|
cntud="$(echo "$out" | grep -e "Up & Down" | wc -l)"
|
||||||
|
cntd="$(expr $ctnd + $cntud)"
|
||||||
|
cntu="$(expr $cntu + $cntud)"
|
||||||
infos="$(echo "$out"| tail -n1)"
|
infos="$(echo "$out"| tail -n1)"
|
||||||
spdd="$(echo "$infos" | awk -F " " '{ printf "%.2f", $5/1000 }')"
|
spdd="$(echo "$infos" | awk -F " " '{ printf "%.2f", $5/1000 }')"
|
||||||
spdu="$(echo "$infos" | awk -F " " '{ printf "%.2f", $4/1000 }')"
|
spdu="$(echo "$infos" | awk -F " " '{ printf "%.2f", $4/1000 }')"
|
||||||
|
Reference in New Issue
Block a user