We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30009f7 commit e90a901Copy full SHA for e90a901
ocaml/libs/stunnel/stunnel_cache.ml
@@ -125,7 +125,7 @@ let unlocked_gc () =
125
List.filter (fun (idx, _) -> not (List.mem idx !to_gc)) times'
126
in
127
(* Sort into descending order of donation time, ie youngest first *)
128
- let times' = List.sort (fun (x, _) (y, _) -> compare y x) times' in
+ let times' = List.sort (fun (_, x) (_, y) -> Float.compare y x) times' in
129
let oldest = list_drop max_stunnel times' in
130
let oldest_ids = List.map fst oldest in
131
List.iter
0 commit comments