summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/workers/background_migration_worker.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/background_migration_worker.rb b/app/workers/background_migration_worker.rb
index 23c297de8bc..e6ca1159b38 100644
--- a/app/workers/background_migration_worker.rb
+++ b/app/workers/background_migration_worker.rb
@@ -17,8 +17,8 @@ class BackgroundMigrationWorker
# Schedules multiple jobs in bulk, with a delay.
#
def self.perform_bulk_in(delay, jobs)
- now = Time.now.to_f
- schedule = now + delay.to_f
+ now = Time.now.to_i
+ schedule = now + delay.to_i
raise ArgumentError if schedule <= now