|
30 | 30 | <span class="block text-500 font-medium mb-3">Hashrate</span> |
31 | 31 | <div class="text-900 font-medium text-2xl flex align-items-center gap-2"> |
32 | 32 | <span *ngIf="!info.power_fault"> |
33 | | - {{info.hashRate * 1000000000 | hashSuffix}} |
| 33 | + {{info.hashRate | hashSuffix}} |
34 | 34 | </span> |
35 | 35 | <span *ngIf="info.power_fault" class="text-red-500"> |
36 | 36 | Not available - Power fault |
|
47 | 47 | </ng-container> |
48 | 48 |
|
49 | 49 | <div class="text-500 text-xs" *ngIf="!info.power_fault && info.expectedHashrate"> |
50 | | - Expected: {{info.expectedHashrate * 1000000000 | hashSuffix}} |
| 50 | + Expected: {{info.expectedHashrate | hashSuffix}} |
51 | 51 | </div> |
52 | 52 | </div> |
53 | 53 | </div> |
|
58 | 58 | <span class="block text-500 font-medium mb-3">Efficiency</span> |
59 | 59 | <div class="text-900 font-medium text-2xl flex align-items-center gap-2"> |
60 | 60 | <span *ngIf="!info.power_fault"> |
61 | | - {{info.power / (info.hashRate/1000) | number: '1.2-2'}} <small>J/Th</small> |
| 61 | + {{info.power / (info.hashRate / 1000000000000) | number: '1.2-2'}} J/Th |
62 | 62 | </span> |
63 | 63 | <span *ngIf="info.power_fault" class="text-red-500"> |
64 | 64 | Not available - Power fault |
|
70 | 70 | <ng-container *ngIf="!info.power_fault"> |
71 | 71 | Average: |
72 | 72 | <span class="text-green-500 font-medium"> |
73 | | - {{calculateEfficiencyAverage(hashrateData, powerData) | number: '1.2-2'}} <small>J/Th</small> |
| 73 | + {{calculateEfficiencyAverage(hashrateData, powerData) | number: '1.2-2'}} J/Th |
74 | 74 | </span> |
75 | 75 | </ng-container> |
76 | 76 |
|
77 | 77 | <div class="text-500 text-xs" *ngIf="!info.power_fault && info.expectedHashrate"> |
78 | | - Expected: {{info.power / (info.expectedHashrate/1000) | number: '1.2-2'}} J/Th |
| 78 | + Expected: {{info.power / (info.expectedHashrate / 1000000000000) | number: '1.2-2'}} J/Th |
79 | 79 | </div> |
80 | 80 | </div> |
81 | 81 | </div> |
|
134 | 134 |
|
135 | 135 | <div class="col-12" *ngIf="!info.power_fault"> |
136 | 136 | <div class="card"> |
137 | | - <p-chart #chart id="chart" [data]="chartData" [options]="chartOptions"></p-chart> |
| 137 | + <form [formGroup]="form"> |
| 138 | + <div class="flex flex-nowrap justify-content-between mb-3"> |
| 139 | + <p-dropdown |
| 140 | + [options]="dataSourceLabels(info)" |
| 141 | + optionLabel="name" |
| 142 | + optionValue="value" |
| 143 | + formControlName="chartY1Data" |
| 144 | + styleClass="w-10rem p-dropdown--border-color-primary p-dropdown--small"> |
| 145 | + </p-dropdown> |
| 146 | + <p-dropdown |
| 147 | + [options]="dataSourceLabels(info)" |
| 148 | + optionLabel="name" |
| 149 | + optionValue="value" |
| 150 | + formControlName="chartY2Data" |
| 151 | + styleClass="w-10rem border-500 p-dropdown--small"> |
| 152 | + </p-dropdown> |
| 153 | + </div> |
| 154 | + |
| 155 | + <p-chart #chart id="chart" [data]="chartData" [options]="chartOptions"></p-chart> |
| 156 | + </form> |
138 | 157 | </div> |
139 | 158 | </div> |
140 | 159 |
|
|
0 commit comments