formats eta to readable format
(self)
| 225 | return formatSize(self.getSize()) |
| 226 | |
| 227 | def formatETA(self): |
| 228 | """ formats eta to readable format """ |
| 229 | seconds = self.getETA() |
| 230 | |
| 231 | if seconds < 0: return "00:00:00" |
| 232 | |
| 233 | hours, seconds = divmod(seconds, 3600) |
| 234 | minutes, seconds = divmod(seconds, 60) |
| 235 | return "%.2i:%.2i:%.2i" % (hours, minutes, seconds) |
| 236 | |
| 237 | def getSpeed(self): |
| 238 | """ calculates speed """ |