Skip to content

Commit e0bcff0

Browse files
author
Lillian Zhang
committed
Use ints instead of floats for usage values
1 parent 1d83241 commit e0bcff0

File tree

1 file changed

+12
-12
lines changed
  • src/main/ruby/truffleruby/core

1 file changed

+12
-12
lines changed

src/main/ruby/truffleruby/core/gc.rb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,18 @@ def self.stat(option = nil)
8585
:minor_gc_count => minor_count,
8686
:major_gc_count => major_count,
8787
:unknown_count => unknown_count, # if nonzero, major or minor count needs to be updated for this GC case
88-
:committed => 0.0,
89-
:init => 0.0,
90-
:max => 0.0,
91-
:used => 0.0,
92-
:peak_committed => 0.0,
93-
:peak_init => 0.0,
94-
:peak_max => 0.0,
95-
:peak_used => 0.0,
96-
:last_committed => 0.0,
97-
:last_init => 0.0,
98-
:last_max => 0.0,
99-
:last_used => 0.0,
88+
:committed => 0,
89+
:init => 0,
90+
:max => 0,
91+
:used => 0,
92+
:peak_committed => 0,
93+
:peak_init => 0,
94+
:peak_max => 0,
95+
:peak_used => 0,
96+
:last_committed => 0,
97+
:last_init => 0,
98+
:last_max => 0,
99+
:last_used => 0,
100100
:heap_available_slots => committed, # should be the same as the calculated committed
101101
:heap_live_slots => used, # should be the same as the calculated used
102102
:heap_free_slots => committed - used,

0 commit comments

Comments
 (0)