From 7924ea0545123564913e9126ea4f4d2603a36d26 Mon Sep 17 00:00:00 2001 From: iAmShorty Date: Fri, 28 Feb 2014 13:41:40 +0100 Subject: [PATCH] [UPDATE] block graphs --- .../bootstrap/js/demo/flot-demo.js | 4 +- public/templates/bootstrap/master.tpl | 6 +- .../statistics/blocks/block_overview_time.tpl | 2 + .../statistics/blocks/block_shares_graph.tpl | 143 +++++++++++------- .../blocks/blocks_found_details.tpl | 2 + 5 files changed, 96 insertions(+), 61 deletions(-) mode change 100755 => 100644 public/templates/bootstrap/master.tpl mode change 100755 => 100644 public/templates/bootstrap/statistics/blocks/block_overview_time.tpl mode change 100755 => 100644 public/templates/bootstrap/statistics/blocks/block_shares_graph.tpl mode change 100755 => 100644 public/templates/bootstrap/statistics/blocks/blocks_found_details.tpl diff --git a/public/site_assets/bootstrap/js/demo/flot-demo.js b/public/site_assets/bootstrap/js/demo/flot-demo.js index cc0a779d..6e6f87b5 100644 --- a/public/site_assets/bootstrap/js/demo/flot-demo.js +++ b/public/site_assets/bootstrap/js/demo/flot-demo.js @@ -40,10 +40,10 @@ $(document).ready(function() { var plotObj = $.plot($("#flot-line-chart"), [{ data: sin, - label: "sin(x)" + label: "test 1" }, { data: cos, - label: "cos(x)" + label: "test 2" }], options); } diff --git a/public/templates/bootstrap/master.tpl b/public/templates/bootstrap/master.tpl old mode 100755 new mode 100644 index 60bcc559..5cf0c544 --- a/public/templates/bootstrap/master.tpl +++ b/public/templates/bootstrap/master.tpl @@ -72,14 +72,16 @@ - - + + + + diff --git a/public/templates/bootstrap/statistics/blocks/block_overview_time.tpl b/public/templates/bootstrap/statistics/blocks/block_overview_time.tpl old mode 100755 new mode 100644 index 0d515979..dd9e6475 --- a/public/templates/bootstrap/statistics/blocks/block_overview_time.tpl +++ b/public/templates/bootstrap/statistics/blocks/block_overview_time.tpl @@ -1,3 +1,4 @@ +
@@ -182,3 +183,4 @@
+
\ No newline at end of file diff --git a/public/templates/bootstrap/statistics/blocks/block_shares_graph.tpl b/public/templates/bootstrap/statistics/blocks/block_shares_graph.tpl old mode 100755 new mode 100644 index 5629105c..b121893d --- a/public/templates/bootstrap/statistics/blocks/block_shares_graph.tpl +++ b/public/templates/bootstrap/statistics/blocks/block_shares_graph.tpl @@ -1,57 +1,86 @@ -
-

Block Shares

- - - - -{section block $BLOCKSFOUND step=-1} - -{/section} - - - - - -{section block $BLOCKSFOUND step=-1} - -{/section} - - - -{section block $BLOCKSFOUND step=-1} - -{/section} - - {if $GLOBAL.config.payout_system == 'pplns'} - -{section block $BLOCKSFOUND step=-1} - -{/section} - {/if} - {if $USEBLOCKAVERAGE} - -{section block $BLOCKSFOUND step=-1} - -{/section} - {/if} - -
Block Shares
{$BLOCKSFOUND[block].height}
Expected{$BLOCKSFOUND[block].estshares}
Actual{$BLOCKSFOUND[block].shares|default:"0"}
PPLNS{$BLOCKSFOUND[block].pplns_shares}
Average{$BLOCKSFOUND[block].block_avg}
- - - - - - - -
- - - -
-
-

- The graph above illustrates N shares to find a block vs. E Shares expected to find a block based on - target and network difficulty and assuming a zero variance scenario. -

-
-
+ + +
+
+
+
+ Block Shares +
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
diff --git a/public/templates/bootstrap/statistics/blocks/blocks_found_details.tpl b/public/templates/bootstrap/statistics/blocks/blocks_found_details.tpl old mode 100755 new mode 100644 index 4cb140e9..0bde8f06 --- a/public/templates/bootstrap/statistics/blocks/blocks_found_details.tpl +++ b/public/templates/bootstrap/statistics/blocks/blocks_found_details.tpl @@ -1,3 +1,4 @@ +
@@ -78,3 +79,4 @@
+
\ No newline at end of file