Skip to content

Commit

Permalink
fix: Format shares number
Browse files Browse the repository at this point in the history
  • Loading branch information
mrv777 committed Sep 29, 2024
1 parent 271ee22 commit 66cc9bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ <h4>Loading...</h4>
<div class="flex justify-content-between mb-3">
<div>
<span class="block text-500 font-medium mb-3">Shares</span>
<div class="text-900 font-medium text-xl">{{info.sharesAccepted}}</div>
<div class="text-900 font-medium text-xl">{{info.sharesAccepted | number: '1.0-0'}}</div>
</div>
<div class="flex align-items-center justify-content-center bg-blue-100 border-round"
[ngStyle]="{width: '2.5rem', height: '2.5rem'}">
<i class="pi pi-send text-blue-500 text-xl"></i>
</div>
</div>
<span class="text-red-500 font-medium">{{info.sharesRejected}} </span>
<span class="text-red-500 font-medium">{{info.sharesRejected | number: '1.0-0'}} </span>
<span class="text-500">rejected</span>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<td><a [href]="'http://'+axe.ip" target="_blank">{{axe.ip}}</a></td>
<td>{{axe.hashRate * 1000000000 | hashSuffix}}</td>
<td>{{axe.uptimeSeconds | dateAgo}}</td>
<td>{{axe.sharesAccepted}}</td>
<td>{{axe.sharesAccepted | number: '1.0-0'}}</td>
<td>{{axe.power | number: '1.2-2'}} <small>W</small> </td>
<td>{{axe.temp}}°<small>C</small></td>
<td>{{axe.bestDiff}}</td>
Expand Down

0 comments on commit 66cc9bb

Please sign in to comment.