Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
fix issue jthornber#71 ArgumentError: incomplete format specifier
Browse files Browse the repository at this point in the history
test_fio_origin_randwrite_iod_N(FIOTests):
ArgumentError: incomplete format specifier; use %% (double %) instead
    /root/device-mapper-test-suite/lib/dmtest/blktrace.rb:215:in `sprintf'
  • Loading branch information
Simon Xu committed Sep 4, 2020
1 parent 3e1e385 commit 25d9e05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dmtest/blktrace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def show_distribution
iod = @cpu_iod.map do |s|
s *= 512
size = Filesize.from("#{s} B").pretty
percent = sprintf("%.2f%", total > 0 ? (s * 100.0 / total) : 0)
percent = sprintf("%.2f%%", total > 0 ? (s * 100.0 / total) : 0)

"#{size} (#{percent})"
end
Expand Down

0 comments on commit 25d9e05

Please sign in to comment.