MCPcopy Index your code
hub / github.com/RUB-NDS/PRET / do_uptime

Method do_uptime

postscript.py:371–377  ·  view source on GitHub ↗

Show system uptime (might be random).

(self, arg)

Source from the content-addressed store, hash-verified

369
370 # ------------------------[ uptime ]----------------------------------
371 def do_uptime(self, arg):
372 "Show system uptime (might be random)."
373 str_recv = self.cmd('realtime ==')
374 try:
375 output().info(conv().elapsed(str_recv, 1000))
376 except ValueError:
377 output().info("Not available")
378
379 # ------------------------[ date ]------------------------------------
380 def do_date(self, arg):

Callers

nothing calls this directly

Calls 5

cmdMethod · 0.95
outputClass · 0.90
convClass · 0.90
infoMethod · 0.80
elapsedMethod · 0.80

Tested by

no test coverage detected