mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-14 15:54:47 +00:00
Fixed negative month cost in realtime calculation
This commit is contained in:
parent
538624b6eb
commit
06a0366762
@ -14,12 +14,12 @@ struct EnergyAccountingPeak {
|
||||
struct EnergyAccountingData {
|
||||
uint8_t version;
|
||||
uint8_t month;
|
||||
uint32_t costYesterday;
|
||||
uint32_t costThisMonth;
|
||||
uint32_t costLastMonth;
|
||||
uint32_t incomeYesterday;
|
||||
uint32_t incomeThisMonth;
|
||||
uint32_t incomeLastMonth;
|
||||
int32_t costYesterday;
|
||||
int32_t costThisMonth;
|
||||
int32_t costLastMonth;
|
||||
int32_t incomeYesterday;
|
||||
int32_t incomeThisMonth;
|
||||
int32_t incomeLastMonth;
|
||||
uint32_t lastMonthImport;
|
||||
uint32_t lastMonthExport;
|
||||
uint8_t lastMonthAccuracy;
|
||||
|
||||
2
lib/SvelteUi/app/dist/index.js
vendored
2
lib/SvelteUi/app/dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -14,7 +14,7 @@
|
||||
heightAvailable = height-(config.title ? 20 : 0);
|
||||
let innerWidth = width - (config.padding.left + config.padding.right);
|
||||
barWidth = innerWidth / config.points.length;
|
||||
labelOffset = barWidth < vertSwitch ? 30 : 10;
|
||||
labelOffset = barWidth < vertSwitch ? 30 : 15;
|
||||
|
||||
let yPerUnit = (heightAvailable-config.padding.top-config.padding.bottom)/(config.y.max-config.y.min);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user