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 0df8511 commit 3952606Copy full SHA for 3952606
src/ecTerminal.ml
@@ -184,9 +184,10 @@ class from_channel
184
| Some (mem, unu, btick) when btick > tick-20 ->
185
(mem, unu)
186
| _ ->
187
- let mem = (Gc.stat ()).Gc.live_words in
+ let stats = Gc.stat () in
188
+ let mem = stats.Gc.live_words in
189
let mem = (float_of_int mem) *. (float_of_int (Sys.word_size / 8)) in
- let unu = (Gc.stat ()).Gc.fragments in
190
+ let unu = stats.Gc.fragments in
191
let unu = (float_of_int unu) *. (float_of_int (Sys.word_size / 8)) in
192
gc <- Some (mem, unu, tick); (mem, unu)
193
in
0 commit comments