lib/cosgrove/upvote_job.rb in cosgrove-0.0.1rc2 vs lib/cosgrove/upvote_job.rb in cosgrove-0.0.1rc3

- old
+ new

@@ -137,13 +137,13 @@ if upvote_weight == 'dynamic' bot_account = find_account(steem_account) upvote_weight = bot_account.voting_power.to_i else - upvote_weight = (((upvote_weight || '100.0 %').to_f) * 100).to_i + upvote_weight = (((upvote_weight || '0.00 %').to_f) * 100).to_i end else - upvote_weight = (((upvote_weight || '100.0 %').to_f) * 100).to_i + upvote_weight = (((upvote_weight || '0.0 %').to_f) * 100).to_i end end end end