Added uptime to web controls

Asking for the uptime control will return how long ocarina has been
running.
This commit is contained in:
Bryan Schumaker 2010-12-27 12:40:40 -05:00
parent 4a34ce51f1
commit 9dadf082b4

View File

@ -26,6 +26,8 @@ def to_html(wfile, args):
ret = next()
elif action == "version":
ret = ocarina.__vers__
elif action == "uptime":
ret = ocarina.now() - ocarina.__start__
elif action == "title":
ret = attrs("title")
elif action == "album":