Simplify RunMap compare
This commit is contained in:
parent
465ede64d6
commit
eb039308ec
1 changed files with 1 additions and 4 deletions
|
@ -7,10 +7,7 @@ open Lwt_result.Infix
|
||||||
module RunMap = Map.Make(struct
|
module RunMap = Map.Make(struct
|
||||||
type t = Fpath.t * Fpath.t
|
type t = Fpath.t * Fpath.t
|
||||||
let compare (j1,r1) (j2,r2) =
|
let compare (j1,r1) (j2,r2) =
|
||||||
let jcmp = Fpath.compare j1 j2 in
|
Fpath.(compare (j1 // r1) (j2 // r2))
|
||||||
if jcmp <> 0
|
|
||||||
then jcmp
|
|
||||||
else Fpath.compare r1 r2
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
type job_run_meta = {
|
type job_run_meta = {
|
||||||
|
|
Loading…
Reference in a new issue