Skip to content

Commit

Permalink
Fixing searchdir update in blockattime()
Browse files Browse the repository at this point in the history
  • Loading branch information
bpfaff committed Sep 4, 2018
1 parent 4cb03c4 commit df94f4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/UtilFuncs.R
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ blockattime <- function(con, targetdate){
if (curdelta > 100){
approxh1 <- approxh1 + searchdir * floor(curdelta / 10)
ht <- timeofblock(con, approxh1)
searchdir <- sign(as.numeric(dt - ht))
}
signtimedelta <- sign(as.numeric(dt - ht))
}
Expand Down

0 comments on commit df94f4b

Please sign in to comment.