Commits

Gabriele Lanaro committed 7bf3d8a

fixed a little problem with bytes transfer

Comments (0)

Files changed (1)

filesnake/gui/transfers.py

             if item.completed == 100:
                 self.objectlist.remove(item)
 
-from random import random
 
 class TransferMonitor(GObject):
     '''
     def speed(self):
         value = self._speed
         if value < 1024:
-            return "{0:.2} b/s".format(value)
+            return "{0} b/s".format(value)
         elif value > 1024 and value <  1048576:
             return "{0:.2} Kb/s".format(value/1024.0)
         elif value > 1048576: