mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 04:54:23 +00:00
more percentages fixes for peer tab and files tab
This commit is contained in:
parent
e09ee8aef7
commit
4c37eaade1
@ -430,7 +430,7 @@ class DelugeGTK:
|
|||||||
assert(len(all_files) == len(file_filter))
|
assert(len(all_files) == len(file_filter))
|
||||||
i=0
|
i=0
|
||||||
for f in all_files:
|
for f in all_files:
|
||||||
if f['progress'] <= 9:
|
if f['progress'] < 10:
|
||||||
progress = '0''%.2f%%'%f['progress']
|
progress = '0''%.2f%%'%f['progress']
|
||||||
else:
|
else:
|
||||||
progress = '%.2f%%'%f['progress']
|
progress = '%.2f%%'%f['progress']
|
||||||
@ -800,7 +800,7 @@ class DelugeGTK:
|
|||||||
for peer in new_peer_info:
|
for peer in new_peer_info:
|
||||||
if peer['ip'] in curr_ips.keys():
|
if peer['ip'] in curr_ips.keys():
|
||||||
|
|
||||||
if peer["peer_has"] <= 9:
|
if peer["peer_has"] < 10:
|
||||||
peer_has = '0''%.2f%%'%peer["peer_has"]
|
peer_has = '0''%.2f%%'%peer["peer_has"]
|
||||||
else:
|
else:
|
||||||
peer_has = '%.2f%%'%peer["peer_has"]
|
peer_has = '%.2f%%'%peer["peer_has"]
|
||||||
@ -812,7 +812,7 @@ class DelugeGTK:
|
|||||||
4, common.frate(peer["upload_speed"]))
|
4, common.frate(peer["upload_speed"]))
|
||||||
for peer in new_peer_info:
|
for peer in new_peer_info:
|
||||||
if peer['ip'] not in curr_ips.keys() and peer['client'] is not "":
|
if peer['ip'] not in curr_ips.keys() and peer['client'] is not "":
|
||||||
if peer["peer_has"] <= 9:
|
if peer["peer_has"] < 10:
|
||||||
peer_has = '0''%.2f'%peer["peer_has"]
|
peer_has = '0''%.2f'%peer["peer_has"]
|
||||||
else:
|
else:
|
||||||
peer_has = '%.2f'%peer["peer_has"]
|
peer_has = '%.2f'%peer["peer_has"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user