File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ def gather_info(since_when) #:nodoc:
198198 @refresh_every = nil if @refresh_every . present? && @refresh_every < 60
199199
200200 # RemoteResources, including the portal itself
201- @myself = RemoteResource . current_resource
201+ @portals = BrainPortal . where ( :online => true ) . all . to_a # includes the current portal and any other
202202 acttasks_bids = CbrainTask . active . group ( :bourreau_id ) . pluck ( :bourreau_id )
203203 updated_bids = Bourreau . where ( [ "updated_at > ?" , offline_resource_limit . ago ] ) . pluck ( :id ) # must have been toggled within a month.
204204 @bourreaux = Bourreau . where ( :id => ( acttasks_bids | updated_bids ) ) . order ( :name ) . all
@@ -246,7 +246,7 @@ def gather_info(since_when) #:nodoc:
246246
247247 # We also scan the BrainPortal, although it has no tasks, because
248248 # the caching logic is the same.
249- ( [ @myself ] + @bourreaux ) . each do |b | # b is a BrainPortal once, and a Bourreau for the rest
249+ ( @portals + @bourreaux ) . each do |b | # b is a BrainPortal once, and a Bourreau for the rest
250250 info = @bourreau_info [ b . id ] = { }
251251
252252 # Sum of task workdir space
Original file line number Diff line number Diff line change 110110
111111< h1 > Execution Servers Caches And Tasks</ h1 >
112112
113- <% ([ @myself ] + @bourreaux).each do |b| %>
113+ <% (@portals + @bourreaux).each do |b| %>
114114 <%
115115 info = @bourreau_info [ b . id ] || { }
116116 task_space = info [ :task_space ] || 0
You can’t perform that action at this time.
0 commit comments