Skip to content

Commit

Permalink
fix GC metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Jan 19, 2024
1 parent 7684f67 commit e8eeec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prometheus/tiny_httpd_prometheus.ml
Original file line number Diff line number Diff line change
Expand Up @@ -227,5 +227,5 @@ module GC_metrics = struct
let stats = Gc.quick_stat () in
Counter.incr_to self.major_coll stats.major_collections;
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

0 comments on commit e8eeec5

Please sign in to comment.