fix: Format shares number

This commit is contained in:
mrv777 2024-09-29 09:19:46 -05:00
parent 271ee2210b
commit 66cc9bb750
2 changed files with 3 additions and 3 deletions

View File

@ -37,14 +37,14 @@
<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>

View File

@ -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>