From ff76401ecddbd63ce35581d9248a45f053e8b77b Mon Sep 17 00:00:00 2001 From: saravanan30erd Date: Fri, 16 Aug 2019 19:29:41 +0400 Subject: [PATCH] fix the canvas func onload issue --- bin/monit-dashboard.py | 2 -- templates/index.html | 12 +++++------- templates/layout.html | 2 +- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/bin/monit-dashboard.py b/bin/monit-dashboard.py index 31fe677..779b941 100755 --- a/bin/monit-dashboard.py +++ b/bin/monit-dashboard.py @@ -25,7 +25,6 @@ output = [] # Functions - def getMonit(): output = [] xmlQuery = "/_status?format=xml" @@ -61,7 +60,6 @@ def getMonit(): # Classes - class monitDashboard(web.application): def run(self, port=8080, *middleware): diff --git a/templates/index.html b/templates/index.html index ea73870..06f9e5d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,11 +1,7 @@ $def with (output, now) -$ data = 0.5 - - - - +$ data = 0.4 - + $ errors = 0 $ color = "green" $for server in range(len(output)): @@ -86,5 +82,7 @@ Latest update: $now.day/$now.month/$now.year, $now.hour:$now.minute:$now.second

+ - + + diff --git a/templates/layout.html b/templates/layout.html index 93b7b0f..b17136e 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -15,4 +15,4 @@ $def with (content) Home | Help - \ No newline at end of file +