formats and return wait time in humanreadable format
(self)
| 211 | self.m.checkAllLinksProcessed(self.id) |
| 212 | |
| 213 | def formatWait(self): |
| 214 | """ formats and return wait time in humanreadable format """ |
| 215 | seconds = self.waitUntil - time() |
| 216 | |
| 217 | if seconds < 0: return "00:00:00" |
| 218 | |
| 219 | hours, seconds = divmod(seconds, 3600) |
| 220 | minutes, seconds = divmod(seconds, 60) |
| 221 | return "%.2i:%.2i:%.2i" % (hours, minutes, seconds) |
| 222 | |
| 223 | def formatSize(self): |
| 224 | """ formats size to readable format """ |