From 4303ccc42faa1f4c459ea2735e27fdedf1c08a2c Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Sat, 14 Sep 2013 17:59:13 +0200 Subject: [PATCH] added query time as gauge --- public/templates/test/dashboard/gauges.tpl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/public/templates/test/dashboard/gauges.tpl b/public/templates/test/dashboard/gauges.tpl index a279060e..2a37e2f3 100644 --- a/public/templates/test/dashboard/gauges.tpl +++ b/public/templates/test/dashboard/gauges.tpl @@ -5,6 +5,7 @@
+
@@ -46,6 +47,16 @@ window.onload = function(){ title: "Sharerate", label: "shares/s" }); + + var g5 = new JustGage({ + id: "sharerate", + value: parseFloat(0.00).toFixed(2), + min: 5, + max: 50, + title: "Querytime", + label: "ms" + }); + // Our reload and refresh gauges handler setInterval(function() { @@ -58,6 +69,7 @@ window.onload = function(){ g2.refresh(parseFloat(data.getdashboarddata.pool.hashrate).toFixed(2)); g3.refresh(parseFloat(data.getdashboarddata.personal.hashrate).toFixed(2)); g4.refresh(parseFloat(data.getdashboarddata.personal.sharerate).toFixed(2)); + g5.refresh(parseFloat(data.getdashboarddata.datatime).toFixed(2)); } }); }, 2000);