Skip to content

Commit

Permalink
Merge pull request #1046 from gdt/remove-fat-dst-workaround
Browse files Browse the repository at this point in the history
Remove FAT-inspired DST workaround
  • Loading branch information
gdt authored Oct 19, 2024
2 parents e212e4a + 666144b commit 409c2db
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/props.ml
Original file line number Diff line number Diff line change
Expand Up @@ -478,15 +478,9 @@ let extract t = match t with Synced v -> v | NotSynced v -> v
let minus_two = Int64.of_int (-2)
let approximate t = Int64.logand (Int64.of_float t) minus_two

let oneHour = Int64.of_int 3600
let minusOneHour = Int64.neg oneHour
let moduloOneHour t =
let v = Int64.rem t oneHour in
if v >= Int64.zero then v else Int64.add v oneHour

(* Accept one hour differences and one second differences *)
(* Set up for ignoring 1s differences in function similar, below *)
let possible_deltas =
[ -3601L; 3601L; -3600L; 3600L; -3599L; 3599L; -1L; 1L; 0L ]
[ -1L; 1L; 0L ]

let hash t h =
Uutil.hash2
Expand Down

0 comments on commit 409c2db

Please sign in to comment.