Commits

Gabriele Lanaro committed b6850af

further fixes and annotations

  • Participants
  • Parent commits 7efaf75

Comments (0)

Files changed (2)

 * Short Term
 ** Papercuts (Third iterate)
+- [ ] Ask yes no dialog for confirmation has sort of: eulero-desktop send file of this size: 3483948934, switch to a pretty printed version of the size
+
 *** DONE Trasfer file dialog is ugly [6/6]
     - State "DONE"       [2010-06-26 sab 00:57]
 
 *** TODO interationalization
 
 
+
+
 ** Cleaning
 *** GUI
 **** TODO gui menus

filesnake/gui/transfers.py

             return u"∞"
         else:
             # Seconds remaining
-            s = self._speed * (self._size - self.progress)
+            s = (self._size - self.progress) / self._speed
             # Formatting a nice string
             hours, remainder = divmod(s, 3600)
             minutes, seconds = divmod(remainder, 60)
     
     tm.speed = 15
     eta = tm.ETA
-    assert eta == "5h:50m:0s"
+    assert eta == "0h:1m:33s"