mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 11:15:35 -05:00
fix GC metrics
This commit is contained in:
parent
7684f67bc1
commit
e8eeec5915
1 changed files with 1 additions and 1 deletions
|
|
@ -227,5 +227,5 @@ module GC_metrics = struct
|
||||||
let stats = Gc.quick_stat () in
|
let stats = Gc.quick_stat () in
|
||||||
Counter.incr_to self.major_coll stats.major_collections;
|
Counter.incr_to self.major_coll stats.major_collections;
|
||||||
Counter.incr_to self.compactions stats.compactions;
|
Counter.incr_to self.compactions stats.compactions;
|
||||||
Gauge.set self.major_heap (int_of_float (stats.major_words *. 8.))
|
Gauge.set self.major_heap (stats.heap_words * 8)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue