projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
11185: Addressed several requests:
[arvados.git]
/
apps
/
workbench
/
app
/
controllers
/
keep_disks_controller.rb
diff --git
a/apps/workbench/app/controllers/keep_disks_controller.rb
b/apps/workbench/app/controllers/keep_disks_controller.rb
index f57455b37fd6895262267bfc75e2df8e6dced594..bbf18e591bbb5f873a0c680f248f06eb85f72cdc 100644
(file)
--- a/
apps/workbench/app/controllers/keep_disks_controller.rb
+++ b/
apps/workbench/app/controllers/keep_disks_controller.rb
@@
-32,6
+32,7
@@
class KeepDisksController < ApplicationController
histogram_log = Log.
filter([[:event_type, '=', 'block-age-free-space-histogram']]).
order(:created_at => :desc).
histogram_log = Log.
filter([[:event_type, '=', 'block-age-free-space-histogram']]).
order(:created_at => :desc).
+ with_count('none').
limit(1)
histogram_log.each do |log_entry|
# We expect this block to only execute at most once since we
limit(1)
histogram_log.each do |log_entry|
# We expect this block to only execute at most once since we