From 3c7bb41f815c497e4aded0bbcae8e9549d5af413 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Mon, 9 Sep 2013 07:45:35 +0200 Subject: [PATCH] stats template changes --- .../test/statistics/pool/authenticated.tpl | 65 ------------------- .../test/statistics/pool/default.tpl | 7 ++ .../test/statistics/pool/general_stats.tpl | 59 +++++++++++++++++ 3 files changed, 66 insertions(+), 65 deletions(-) delete mode 100644 public/templates/test/statistics/pool/authenticated.tpl create mode 100644 public/templates/test/statistics/pool/default.tpl create mode 100644 public/templates/test/statistics/pool/general_stats.tpl diff --git a/public/templates/test/statistics/pool/authenticated.tpl b/public/templates/test/statistics/pool/authenticated.tpl deleted file mode 100644 index 67136bb9..00000000 --- a/public/templates/test/statistics/pool/authenticated.tpl +++ /dev/null @@ -1,65 +0,0 @@ -{include file="statistics/pool/contributors_shares.tpl"} - -{include file="statistics/pool/contributors_hashrate.tpl"} - -
-

General Statistics

-
- - - - - - - - - - - - - - - {if $GLOBAL.website.blockexplorer.url} - - - - - {else} - - - - - {/if} - - - - - - - {if ! $GLOBAL.website.chaininfo.disabled} - - {else} - - {/if} - - - - - - - - - - - - - - -
Pool Hash Rate{($GLOBAL.hashrate / 1000)|number_format:"3"} Mhash/s
Pool Efficiency{if $GLOBAL.roundshares.valid > 0}{($GLOBAL.roundshares.valid / ($GLOBAL.roundshares.valid + $GLOBAL.roundshares.invalid) * 100)|number_format:"2"}%{else}0%{/if}
Current Active Workers{$GLOBAL.workers}
Next Network Block{$CURRENTBLOCK + 1}    (Current: {$CURRENTBLOCK})
Next Network Block{$CURRENTBLOCK + 1}    (Current: {$CURRENTBLOCK})
Last Block Found{if $GLOBAL.website.blockexplorer.url}{$LASTBLOCK|default:"0"}{else}{$LASTBLOCK|default:"0"}{/if}
Current Difficulty{$DIFFICULTY}{$DIFFICULTY}
Est. Avg. Time per Round{$ESTTIME|seconds_to_words}
Est. Shares this Round{(pow(2, 32 - $GLOBAL.config.targetdiff) * $DIFFICULTY)|number_format:"0"} (done: {(100 / (pow(2, 32 - $GLOBAL.config.targetdiff) * $DIFFICULTY) * $GLOBAL.roundshares.valid)|number_format:"2"} %)
Time Since Last Block{$TIMESINCELAST|seconds_to_words}
-
-
-{if !$GLOBAL.website.api.disabled}
  • These stats are also available in JSON format HERE
{/if} -
-
- -{include file="statistics/blocks/small_table.tpl" ALIGN="right" SHORT=true} diff --git a/public/templates/test/statistics/pool/default.tpl b/public/templates/test/statistics/pool/default.tpl new file mode 100644 index 00000000..689fb741 --- /dev/null +++ b/public/templates/test/statistics/pool/default.tpl @@ -0,0 +1,7 @@ +{include file="statistics/pool/contributors_shares.tpl"} + +{include file="statistics/pool/contributors_hashrate.tpl"} + +{include file="statistics/pool/general_stats.tpl"} + +{include file="statistics/blocks/small_table.tpl" ALIGN="right" SHORT=true} diff --git a/public/templates/test/statistics/pool/general_stats.tpl b/public/templates/test/statistics/pool/general_stats.tpl new file mode 100644 index 00000000..975eec6b --- /dev/null +++ b/public/templates/test/statistics/pool/general_stats.tpl @@ -0,0 +1,59 @@ +
+

General Statistics

+
+ + + + + + + + + + + + + {if $GLOBAL.website.blockexplorer.url} + + + + {else} + + + + {/if} + + + + + + {else} + + {/if} + + + + + + + + + + + +
Pool Hash Rate{($GLOBAL.hashrate / 1000)|number_format:"3"} Mhash/s
Pool Efficiency + {if $GLOBAL.roundshares.valid > 0}{($GLOBAL.roundshares.valid / ($GLOBAL.roundshares.valid + $GLOBAL.roundshares.invalid) * 100)|number_format:"2"}%{else}0%{/if}
Current Active Workers + {$GLOBAL.workers}
Next Network Block + {$CURRENTBLOCK + 1}    (Current: {$CURRENTBLOCK})
Next Network Block + {$CURRENTBLOCK + 1}    (Current: {$CURRENTBLOCK})
Last Block Found + {if $GLOBAL.website.blockexplorer.url}{$LASTBLOCK|default:"0"}{else}{$LASTBLOCK|default:"0"}{/if}
Current Difficulty + {if ! $GLOBAL.website.chaininfo.disabled} + {$DIFFICULTY}{$DIFFICULTY}
Est. Avg. Time per Round + {$ESTTIME|seconds_to_words}
Est. Shares this Round + {(pow(2, 32 - $GLOBAL.config.targetdiff) * $DIFFICULTY)|number_format:"0"} (done: {(100 / (pow(2, 32 - $GLOBAL.config.targetdiff) * $DIFFICULTY) * $GLOBAL.roundshares.valid)|number_format:"2"} %)
Time Since Last Block + {$TIMESINCELAST|seconds_to_words}
+
+ +