Skip to content

Commit

Permalink
Fix compareAge comparison ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
harendra-kumar committed Jul 25, 2022
1 parent eefe965 commit 08022d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Streamly/Coreutils/FileTest.hs
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ compareAge getFileTime cmp ageSec = do
ts <- getLocalTime
let now = timespecToPosixTime ts
age = doubleToPosixTime ageSec
return $ compareTime getFileTime cmp (now - age)
return $ compareTime getFileTime (flip cmp) (now - age)

where

Expand Down

0 comments on commit 08022d9

Please sign in to comment.