From 4c37eaade136019c42c528800bb776c306277098 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Fri, 1 Jun 2007 09:21:45 +0000 Subject: [PATCH] more percentages fixes for peer tab and files tab --- src/interface.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/interface.py b/src/interface.py index 834e6395e..d088d5dc5 100644 --- a/src/interface.py +++ b/src/interface.py @@ -430,7 +430,7 @@ class DelugeGTK: assert(len(all_files) == len(file_filter)) i=0 for f in all_files: - if f['progress'] <= 9: + if f['progress'] < 10: progress = '0''%.2f%%'%f['progress'] else: progress = '%.2f%%'%f['progress'] @@ -800,7 +800,7 @@ class DelugeGTK: for peer in new_peer_info: if peer['ip'] in curr_ips.keys(): - if peer["peer_has"] <= 9: + if peer["peer_has"] < 10: peer_has = '0''%.2f%%'%peer["peer_has"] else: peer_has = '%.2f%%'%peer["peer_has"] @@ -812,7 +812,7 @@ class DelugeGTK: 4, common.frate(peer["upload_speed"])) for peer in new_peer_info: 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"] else: peer_has = '%.2f'%peer["peer_has"]