-
Notifications
You must be signed in to change notification settings - Fork 15
/
miner.hbs
85 lines (85 loc) · 4.03 KB
/
miner.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<header class="panel-heading">
<div class="row">
<h2 class="panel-title col-xs-6">{{ title }}</h2>
<div class="col-xs-6"><span class="pull-right">{{#if connected}}Connected{{else}}Disconnected{{/if}}</span></div>
</div>
</header>
{{#if connected}}
<div class="panel-body">
<h4>Overview</h4>
<div class="row overview">
<div class="hashrate col-xs-12 col-md-3">
<div class="graph"></div>
<strong>Current Hashrate: {{hashrate currentHashrate}}</strong>
</div>
<div class="col-xs-12 col-md-3">
<table class="table table-bordered">
<tr><td>Hardware Errors</td><td>{{number hardwareErrors}}</td></tr>
<tr><td>Hardware Error Rate</td><td>{{number hardwareErrorRate precision="2"}}%</td></tr>
<tr><td>Uptime</td><td>{{timespan elapsed}}</td></tr>
<tr><td>Software</td><td>{{description}}</td></tr>
</table>
</div>
<div class="col-xs-12 col-md-3">
<table class="table table-bordered">
<tr><td>Accepted Shares</td><td>{{number shares.accepted}}</td></tr>
<tr><td>Rejected Shares</td><td>{{number shares.rejected}} ({{number shares.rejectedPercentage precision="2"}}%)</td></tr>
<tr><td>Stale Shares</td><td>{{number shares.stale}} ({{number shares.stalePercentage precision="2"}}%)</td></tr>
<tr><td>Discarded Shares</td><td>{{number shares.discarded}}</td></tr>
</table>
</div>
<div class="col-xs-12 col-md-3">
<table class="table table-bordered">
<tr><td>Difficulty Accepted</td><td>{{number difficulty.accepted precision="2"}}</td></tr>
<tr><td>Difficulty Rejected</td><td>{{number difficulty.rejected precision="2"}}</td></tr>
<tr><td>Difficulty Stale</td><td>{{number difficulty.stale precision="2"}}</td></tr>
</table>
</div>
</div>
{{#if pools}}
<h4>Pools</h4>
<div class="pools table-responsive">
<table class="table table-bordered">
<tr>
<th></th>
<th>Priority</th>
<th>Url</th>
<th>Alive</th>
<th>Active</th>
<th>Last Share Submitted</th>
</tr>
{{#each pools}}
<tr>
<td class="{{#if alive}}success{{else}}danger{{/if}}">Pool {{id}}</td>
<td>{{priority}}</td>
<td>{{url}}</td>
<td>{{#if alive}}Yes{{else}}No{{/if}}</td>
<td>{{#if active}}Yes{{else}}No{{/if}}</td>
<td>{{#if lastShareTime}}{{time lastShareTime}}{{else}}Never{{/if}}</td>
</tr>
{{/each}}
</table>
</div>
{{/if}}
{{#if devices}}
<h4>Devices</h4>
<div class="row devices">
{{#each devices}}
<div class="col-xs-12 col-md-3">
<table class="table table-bordered">
<tr>
<td class="{{#if connected}}success{{else}}danger{{/if}}">{{description}}-{{id}}</td>
<td>{{hashrate currentHashrate}}</td>
{{#if temperature}}
<td>{{number temperature precision="1"}}°C</td>
{{/if}}
<td>{{number hardwareErrorRate precision="2"}}% HWE</td>
</tr>
</table>
</div>
{{/each}}
</div>
{{/if}}
</div>
<footer class="text-muted">Updated: {{time lastUpdated}}</footer>
{{/if}}