Skip to content
Permalink
Browse files

Fix boolean logic in the RPC API test

  • Loading branch information...
nwoolls committed Jan 4, 2015
1 parent 58a8bd2 commit b9e5f05242da9bb1260f59025f2734b9550ce23a
Showing with 1 addition and 1 deletion.
  1. +1 −1 RPC-API-Test/rpc-api-test.sh
@@ -86,7 +86,7 @@ for (( i = 1 ; i < ${#response_arr[@]} ; i++ )) do

hashrate_ratio=$(pct $current_hashrate $average_hashrate 0)

if (( 75 < $hashrate_ratio < 125 )) ; then
if (( 75 < $hashrate_ratio && $hashrate_ratio < 125 )) ; then
echo -e "${dk_gray}[${green}SUCCESS${dk_gray}]${clear} hashrate ratio is sane (${lt_gray}current=${current_hashrate} average=${average_hashrate} ratio=${hashrate_ratio}${clear})"
else
echo -e "${dk_gray}[${red}FAILURE${dk_gray}]${clear} hashrate ratio is NOT sane (${lt_gray}current=${current_hashrate} average=${average_hashrate} ratio=${hashrate_ratio}${clear})"

0 comments on commit b9e5f05

Please sign in to comment.
You can’t perform that action at this time.