Skip to content

Commit 9ca392b

Browse files
committed
WIP fixup
1 parent c5679c8 commit 9ca392b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/electricitymaps/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const ElectricityMapsCarbonIntensity = (): PluginInterface => {
7575
);
7676
}
7777
// This is the last hourly block, the ratio is the time between the start of the hour and the end.
78-
if (hour === hours - 1) {
78+
if (hour === numHours - 1) {
7979
return (
8080
end.diff(start.add(hour, 'hour').startOf('hour'), 'second') / 3600
8181
);

0 commit comments

Comments
 (0)