Skip to content

Commit

Permalink
Force benchmark rounding to 2 digits
Browse files Browse the repository at this point in the history
  • Loading branch information
epistrephein committed Nov 28, 2024
1 parent 2d88ae1 commit 9ce6c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/redis.rake
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ task :redis do

REDIS.set('rubies:api:last_update', { last_update: last_update }.to_json)

puts "#{last_update}: Redis OK | #{benchmark.round(2)}s | #{REDIS.dbsize} items"
puts "#{last_update}: Redis OK | #{format('%.2f', benchmark)}s | #{REDIS.dbsize} items"
end

0 comments on commit 9ce6c4b

Please sign in to comment.