mirror of https://github.com/BTCPrivate/z-nomp.git
Added new tab, Table statistics per coin/algo
This commit is contained in:
parent
c48451fc75
commit
444fc6c070
|
@ -31,6 +31,7 @@ module.exports = function(logger){
|
|||
'home.html': '',
|
||||
'getting_started.html': 'getting_started',
|
||||
'stats.html': 'stats',
|
||||
'tbs.html': 'tbs',
|
||||
'api.html': 'api',
|
||||
'admin.html': 'admin'
|
||||
};
|
||||
|
@ -181,4 +182,4 @@ module.exports = function(logger){
|
|||
});
|
||||
|
||||
|
||||
};
|
||||
};
|
||||
|
|
|
@ -42,7 +42,13 @@
|
|||
<li class="{{? it.selected === 'stats' }}pure-menu-selected{{?}}">
|
||||
<a class="hot-swapper" href="/stats">
|
||||
<i class="fa fa-bar-chart-o"></i>
|
||||
Stats
|
||||
Graph Stats
|
||||
</a>
|
||||
</li>
|
||||
<li class="{{? it.selected === 'tbs' }}pure-menu-selected{{?}}">
|
||||
<a class="hot-swapper" href="/tbs">
|
||||
<i class="fa fa-table"></i>
|
||||
Tab Stats
|
||||
</a>
|
||||
</li>
|
||||
<li class="{{? it.selected === 'api' }}pure-menu-selected{{?}}">
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
<div>
|
||||
API Docs here
|
||||
|
||||
<ul>
|
||||
<li>/stats - raw json statistic</li>
|
||||
<li>/pool_stats - historical time per pool json <li>
|
||||
<li>/live_stats - live stats </li>
|
||||
|
||||
</ul>
|
||||
</div>
|
|
@ -0,0 +1,56 @@
|
|||
<style>
|
||||
|
||||
#topCharts{
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
#topCharts > div > div > svg{
|
||||
display: block;
|
||||
height: 280px;
|
||||
}
|
||||
|
||||
.chartWrapper{
|
||||
border: solid 1px #c7c7c7;
|
||||
border-radius: 5px;
|
||||
padding: 5px;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.chartLabel{
|
||||
font-size: 1.2em;
|
||||
text-align: center;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.chartHolder{
|
||||
|
||||
}
|
||||
|
||||
</style>
|
||||
<div id="footer" style="background-color:#2d2d2d;clear:both;text-align:center;">
|
||||
<table class="pure-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Pool</th>
|
||||
<th>Algo</th>
|
||||
<th>Workers</th>
|
||||
<th>Valid Shares</th>
|
||||
<th>Invalid Shares</th>
|
||||
<th>Blocks</th>
|
||||
<th>Hashrate</th>
|
||||
</tr>
|
||||
</tr>
|
||||
</thead>
|
||||
{{ for(var pool in it.stats.pools) { }}
|
||||
<tr class="pure-table-odd">
|
||||
<td>{{=it.stats.pools[pool].name}}</td>
|
||||
<td>{{=it.stats.pools[pool].algorithm}}</td>
|
||||
<td>{{=Object.keys(it.stats.pools[pool].workers).length}}</td>
|
||||
<td>{{=it.stats.pools[pool].poolStats.validShares}}</td>
|
||||
<td>{{=it.stats.pools[pool].poolStats.invalidShares}}</td>
|
||||
<td>{{=it.stats.pools[pool].poolStats.validBlocks}}</td>
|
||||
<td>{{=it.stats.pools[pool].hashrateString}}</td>
|
||||
</tr>
|
||||
{{ } }}
|
||||
</table>
|
||||
</div>
|
Loading…
Reference in New Issue