Corrected with rubocop cop 'Style/FormatString'.

This commit is contained in:
Thorsten Eckel 2015-05-04 16:37:53 +02:00
parent bae19fd9d7
commit 487a506423
2 changed files with 2 additions and 2 deletions

View file

@ -116,7 +116,7 @@ class Scheduler < ApplicationModel
sleep(wait)
logger.info '*** worker loop'
else
printf "*** #{count} jobs processed at %.4f j/s, %d failed ...\n" % [count / realtime, result.last]
format "*** #{count} jobs processed at %.4f j/s, %d failed ...\n", count / realtime, result.last
end
end
end

View file

@ -33,7 +33,7 @@ module Ticket::Number::Date
end
system_id = Setting.get('system_id') || ''
number = t.strftime('%Y%m%d') + system_id.to_s + sprintf( '%04d', counter_increment)
number = t.strftime('%Y%m%d') + system_id.to_s + format('%04d', counter_increment)
# calculate a checksum
# The algorithm to calculate the checksum is derived from the one