Error on floating point arithmetic
avmohan opened this issue · 5 comments
avmohan commented
./jmeter-ec2.sh: line 81: 0 + 3.6: syntax error: invalid arithmetic operator (error token is ".6")
Bash doesn't understand floating pt arithmetic.
benztest commented
I've received the same issue as well.
Line 81 points to echo $[$1 + $2]
in the jmeter-ec2.sh file
I've temporarily replaced the lines that use 'add' to an older release. (example)
#count_overallhosts=$(add $count_overallhosts $count_total)
to
count_overallhosts=$(echo "$count_overallhosts+$count_total" | bc)
This bypasses the error report in console when executing.
avmohan commented
Yeah.. I had changed the add function itself to use bc
oliverlloyd commented
benztest commented
@oliverlloyd sure, I'll give it ago.
oliverlloyd commented
Closed by PR #84