ui.py

changeset 20
fdfbe5d7b677
parent 19
f9ce2442f14f
child 21
c36e549a7f12
--- a/ui.py	Sat Jan 20 23:19:16 2018 +0000
+++ b/ui.py	Sat Jan 20 23:50:36 2018 +0000
@@ -34,7 +34,7 @@
    TB = float(KB ** 4) # 1,099,511,627,776
 
    if B < KB:
-      return '{0} {1}B'.format(B)
+      return '{0}B'.format(B)
    elif KB <= B < MB:
       return '{0:.2f}KB'.format(B/KB)
    elif MB <= B < GB:
@@ -76,8 +76,8 @@
         if 'progress_current' in status and 'progress_total' in status:
             progress=' %d%%' % (status.progress_current/status.progress_total)
         elif 'original_size' in status and 'deduplicated_size' in status:
-            progress=' %s O %s D' % (humanbytes(status.original_size),
-                                     humanbytes(status.deduplicated_size))
+            progress=' %s→%s' % (humanbytes(status['original_size']),
+                                 humanbytes(status['deduplicated_size']))
         title="%s (running: %s%s)" % (status['name'], status['operation'], progress)
         state=ACTIVE
     else: # status['type']=='nothing':
@@ -122,7 +122,6 @@
         for index in range(len(self.backups)):
             b=self.backups[index]
             title, this_state=make_title(self.statuses[index])
-            logging.info('TITLE: %s' % title)
             # Python closures suck dog's balls...
             # first and the last program I write in Python until somebody
             # fixes this brain damage

mercurial