mmtop 1.0.0.rc1 → 1.0.0.rc2
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/mmtop/host.rb +1 -2
- metadata +1 -1
data/lib/mmtop/host.rb
CHANGED
@@ -15,7 +15,6 @@ module MMTop
|
|
15
15
|
@display_name = @name
|
16
16
|
@comment = options['comment']
|
17
17
|
@last_queries = nil
|
18
|
-
puts options
|
19
18
|
@hide_if_empty = options['hide_if_empty']
|
20
19
|
|
21
20
|
initialize_mysql2_cx(m2opts)
|
@@ -118,7 +117,7 @@ module MMTop
|
|
118
117
|
end
|
119
118
|
|
120
119
|
def processlist
|
121
|
-
@processlist.select { |p| !p.status.nil? && !p.status.empty? }
|
120
|
+
@p ||= @processlist.select { |p| !p.status.nil? && !p.status.empty? }
|
122
121
|
end
|
123
122
|
attr_reader :host, :slave_status, :stats, :connections
|
124
123
|
end
|