ghazel-rack-bug 0.3.0.2 → 0.3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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