powerConsumption missed subtraction of powerDelivery
This commit is contained in:
parent
ac50440215
commit
f9e94357c8
@ -46,7 +46,7 @@ export class AppComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
get powerConsumption(): Value | undefined {
|
||||
return this.powerPurchase?.plus(this.powerProduction);
|
||||
return this.powerPurchase?.plus(this.powerProduction)?.minus(this.powerDelivery);
|
||||
}
|
||||
|
||||
get powerProducedPercent(): Value | undefined {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user