Skip to content

Commit f7f9577

Browse files
author
heterodain
committed
typo修正
1 parent d08a910 commit f7f9577

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/heterodain/smartmeter/device/SmartMeter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public synchronized HistoryPower getBeforeDayPower(int beforeDays)
245245
pos += epcSize * 2;
246246

247247
if ("E2".equals(epc)) {
248-
var time = ZonedDateTime.now(JST).minusDays(beforeDay).truncatedTo(ChronoUnit.DAYS);
248+
var time = ZonedDateTime.now(JST).minusDays(beforeDays).truncatedTo(ChronoUnit.DAYS);
249249
history.setTime(time);
250250
for (var epcDataPos = 4; epcDataPos < epcSize * 2; epcDataPos += 8) {
251251
history.getAccumu30Powers()

0 commit comments

Comments
 (0)