MCPcopy Index your code
hub / github.com/pyload/pyload / formatWait

Method formatWait

module/PyFile.py:213–221  ·  view source on GitHub ↗

formats and return wait time in humanreadable format

(self)

Source from the content-addressed store, hash-verified

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 """

Callers 1

statusDownloadsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected