X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/bfa9ee952c1ae3f03fe2f9fa781a132411963030..a7bd5fa6c4353745260398eaa61c5b857975d222:/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 f57455b37f..bbf18e591b 100644 --- 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). + with_count('none'). limit(1) histogram_log.each do |log_entry| # We expect this block to only execute at most once since we