Browse Source

www stratumHostname and Port Difficulty

www stratumHostname and Port Difficulty
master
yuriy0803 2 years ago
parent
commit
de0ef9bad7
  1. 41
      www/app/templates/account/index.hbs

41
www/app/templates/account/index.hbs

@ -1,6 +1,6 @@
<div class="container">
{{high-charts mode=chartMode chartOptions=chartOptions content=chartData}}
{{high-charts mode=chartMode chartOptions=shareChart content=chartData}}
{{high-charts mode=chartMode chartOptions=chartOptions content=chartData}}
{{high-charts mode=chartMode chartOptions=shareChart content=chartData}}
{{#if model.workers}}
<h4>Your Workers</h4>
<div class="table-responsive">
@ -10,6 +10,8 @@
<th>ID</th>
<th>Hashrate (rough, short average)</th>
<th>Hashrate (accurate, long average)</th>
<th>Hostname</th>
<th>Port Difficulty</th>
<th>Blocks</th>
<th>Valid / Stale / Invalid 24h</th>
<th>Last Share</th>
@ -17,29 +19,38 @@
</thead>
<tbody>
{{#each-in model.workers as |k v|}}
<tr class="{{if v.offline "warning" "success"}}">
<td>{{k}}</td>
<td>{{format-hashrate v.hr}} {{#if v.w_stat_s}}<i class="fa fa-arrow-up" style="color:rgb(0, 9, 128)" aria-hidden="true"></i>{{else}}<i class="fa fa-arrow-down" style="color:red" aria-hidden="true"></i>{{/if}}</td>
<td>{{format-hashrate v.hr2}} {{#if v.w_stat}}<i class="fa fa-arrow-up" style="color:rgb(0, 9, 128)" aria-hidden="true"></i>{{else}}<i class="fa fa-arrow-down" style="color:red" aria-hidden="true"></i>{{/if}}</td>
<td>{{v.blocks}}</td>
<td><span class="text-green">{{v.valid}}</span> ({{v.v_per}}%) / <span class="text-yellow">{{v.stale}}</span> ({{v.s_per}}%) / <span class="text-red">{{v.invalid}}</span> ({{v.i_per}}%)</td>
<td>{{format-relative (seconds-to-ms v.lastBeat)}}</td>
</tr>
<tr class="{{if v.offline " warning" "success" }}">
<td>{{k}}</td>
<td>{{format-hashrate v.hr}} {{#if v.w_stat_s}}<i class="fa fa-arrow-up" style="color:rgb(0, 9, 128)"
aria-hidden="true"></i>{{else}}<i class="fa fa-arrow-down" style="color:red"
aria-hidden="true"></i>{{/if}}</td>
<td>{{format-hashrate v.hr2}} {{#if v.w_stat}}<i class="fa fa-arrow-up" style="color:rgb(0, 9, 128)"
aria-hidden="true"></i>{{else}}<i class="fa fa-arrow-down" style="color:red"
aria-hidden="true"></i>{{/if}}</td>
<td>{{v.hostname}}</td>
<td><span class="label label-success">{{format-hashrate v.portDiff}}</span></td>
<td>{{v.blocks}}</td>
<td><span class="text-green">{{v.valid}}</span> ({{v.v_per}}%) / <span class="text-yellow">{{v.stale}}</span>
({{v.s_per}}%) / <span class="text-red">{{v.invalid}}</span> ({{v.i_per}}%)</td>
<td>{{format-relative (seconds-to-ms v.lastBeat)}}</td>
</tr>
{{/each-in}}
</tbody>
</table>
</div>
{{else}}
<h3>No workers online</h3>
<h3>No workers online</h3>
{{/if}}
<div class="alert alert-info" role="alert">
<span class="sr-only">Notice:</span>
Your average hashrate will be smoothly adjusted until you have shares to fullfill estimation window.<br/>
There are two windows, long and short, first is equal to about 30 minutes and long window is usually equal to 3 hours.<br/>
Your average hashrate will be smoothly adjusted until you have shares to fullfill estimation window.<br />
There are two windows, long and short, first is equal to about 30 minutes and long window is usually equal to 3
hours.<br />
Dead (sick) workers will be highlighted in a table of workers if they didn't submit a share for 1/2 of short window,
so you can perform maintenance of your rigs.
</div>
<div class="alert alert-info" role="alert">
<strong>Your bulk stats JSON API URL:</strong> <a href="/api/accounts/{{model.login}}">/api/accounts/{{model.login}}</a>
<strong>Your bulk stats JSON API URL:</strong> <a
href="/api/accounts/{{model.login}}">/api/accounts/{{model.login}}</a>
</div>
</div>
</div>
Loading…
Cancel
Save