From 9dadf082b4ded15a02422c26edd18a124096827a Mon Sep 17 00:00:00 2001 From: Bryan Schumaker Date: Mon, 27 Dec 2010 12:40:40 -0500 Subject: [PATCH] Added uptime to web controls Asking for the uptime control will return how long ocarina has been running. --- html/controls.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html/controls.py b/html/controls.py index b1065b58..fda4cb65 100644 --- a/html/controls.py +++ b/html/controls.py @@ -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":