Commit 4ea55ada authored by Fardale's avatar Fardale

reserve more cpu

parent 49c45207
...@@ -66,7 +66,7 @@ let get_available_cpu () = ...@@ -66,7 +66,7 @@ let get_available_cpu () =
match (cpu_count, loadavg) with match (cpu_count, loadavg) with
| Some cpu_count, Some loadavg -> | Some cpu_count, Some loadavg ->
cpu_count cpu_count
- CCFloat.(ceil (CCFloat.max loadavg !current_load +. 1.5) |> to_int) - CCFloat.(ceil (CCFloat.max loadavg !current_load +. 1.7) |> to_int)
| _ -> 0 | _ -> 0
let get_available_ram () = let get_available_ram () =
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment