mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-06 03:05:31 -05:00
fix(main): method for measuring memory overhead was wrong
This commit is contained in:
parent
34ad038d9a
commit
52b60c4114
1 changed files with 1 additions and 1 deletions
|
|
@ -166,7 +166,7 @@ let solve ?gc:_ ?restarts:_ ?proof_file ?(pp_model = false) ?(check = false)
|
||||||
if Sys.time () -. t1 > time then (
|
if Sys.time () -. t1 > time then (
|
||||||
Log.debugf 0 (fun k -> k "timeout");
|
Log.debugf 0 (fun k -> k "timeout");
|
||||||
true
|
true
|
||||||
) else if (Gc.quick_stat ()).Gc.major_words *. 8. > memory then (
|
) else if float (Gc.quick_stat ()).Gc.heap_words *. 8. > memory then (
|
||||||
Log.debugf 0 (fun k -> k "%S" "exceeded memory limit");
|
Log.debugf 0 (fun k -> k "%S" "exceeded memory limit");
|
||||||
true
|
true
|
||||||
) else
|
) else
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue