Skip to content

Commit

Permalink
Merge pull request #21013 from dzafman/wip-remove-bc
Browse files Browse the repository at this point in the history
test: Replace bc command with printf command

Reviewed-by: Nathan Cutler <ncutler@suse.com>
  • Loading branch information
smithfarm committed Mar 23, 2018
2 parents 3c5f24a + 293ac98 commit f1936a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qa/standalone/scrub/osd-recovery-scrub.sh
Expand Up @@ -65,7 +65,7 @@ function TEST_recovery_scrub() {
pids=""
for pg in $(seq 0 $(expr $PGS - 1))
do
run_in_background pids pg_scrub $poolid.$(echo "{ obase=16; $pg }" | bc | tr '[:upper:]' '[:lower:]')
run_in_background pids pg_scrub $poolid.$(printf "%x" $pg)
done
ceph pg dump pgs
wait_background pids
Expand Down

0 comments on commit f1936a2

Please sign in to comment.