ghazel-rack-bug 0.3.0.2 → 0.3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rack/bug/panels/memory_panel.rb +2 -2
- data/rack-bug.gemspec +1 -1
- metadata +1 -1
@@ -17,9 +17,9 @@ module Rack
|
|
17
17
|
mem = wproc.WorkingSetSize
|
18
18
|
end
|
19
19
|
mem.to_i / 1000
|
20
|
-
elsif pages = File.read("/proc/self/statm") rescue nil
|
20
|
+
elsif pages = ::File.read("/proc/self/statm") rescue nil
|
21
21
|
pages.to_i * statm_page_size
|
22
|
-
elsif proc_file = File.new("/proc/#{$$}/smaps") rescue nil
|
22
|
+
elsif proc_file = ::File.new("/proc/#{$$}/smaps") rescue nil
|
23
23
|
proc_file.map do |line|
|
24
24
|
size = line[/Size: *(\d+)/, 1] and size.to_i
|
25
25
|
end.compact.sum
|
data/rack-bug.gemspec
CHANGED