diff options
Diffstat (limited to 'ttystatus/percent.py')
-rw-r--r-- | ttystatus/percent.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ttystatus/percent.py b/ttystatus/percent.py index af2935c..840c047 100644 --- a/ttystatus/percent.py +++ b/ttystatus/percent.py @@ -27,9 +27,8 @@ class PercentDone(ttystatus.Widget): self.decimals = decimals self.done = 0 self.total = 1 - self.interesting_keys = [done_name, total_name] - def format(self): + def __str__(self): try: done = float(self.done) total = float(self.total) @@ -40,6 +39,6 @@ class PercentDone(ttystatus.Widget): total = 1 return '%.*f %%' % (self.decimals, 100.0 * done / total) - def update(self, master, width): + def update(self, master): self.done = master[self.done_name] self.total = master[self.total_name] |