Skip to content

Commit

Permalink
fix hour undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
TrystanLea committed Mar 5, 2020
1 parent 1277f44 commit 032c31b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion demandshaper-module/scheduler.js
Expand Up @@ -165,9 +165,10 @@ function schedule_smart(forecast,timeleft,end,interruptible,resolution)

let i = 0
let last = 0
let hour = 0

for (var td=0; td<profile.length; td++) {
let hour = profile[td][2]
hour = profile[td][2]
let timestamp = profile[td][0]*0.001
let val = profile[td][3]

Expand Down

0 comments on commit 032c31b

Please sign in to comment.