mirror of
https://github.com/codex-storage/deluge.git
synced 2025-03-01 03:20:44 +00:00
fix eta
This commit is contained in:
parent
34e0a0e839
commit
7bdf7e9d1e
@ -707,7 +707,7 @@ of HD space! Oops!\nWe had to pause at least one torrent"))
|
|||||||
if self.config.get("max_active_torrents") == 0:
|
if self.config.get("max_active_torrents") == 0:
|
||||||
try:
|
try:
|
||||||
self.config.set("max_active_torrents", \
|
self.config.set("max_active_torrents", \
|
||||||
self.config.get("max_active_torrents_tmp")
|
self.config.get("max_active_torrents_tmp"))
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
self.apply_prefs()
|
self.apply_prefs()
|
||||||
|
@ -167,7 +167,7 @@ class DetailsTabManager(object):
|
|||||||
else:
|
else:
|
||||||
self.progress_bar.set_fraction(float(state['progress']))
|
self.progress_bar.set_fraction(float(state['progress']))
|
||||||
self.progress_bar.set_text(common.fpcnt(state["progress"]))
|
self.progress_bar.set_text(common.fpcnt(state["progress"]))
|
||||||
|
self.eta.set_text(common.estimate_eta(state))
|
||||||
self.share_ratio.set_text( '%.3f' % self.manager.calc_ratio(unique_id,
|
self.share_ratio.set_text( '%.3f' % self.manager.calc_ratio(unique_id,
|
||||||
state))
|
state))
|
||||||
self.torrent_path.set_text(self.manager.get_torrent_path(unique_id))
|
self.torrent_path.set_text(self.manager.get_torrent_path(unique_id))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user