Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
heyunpeng committed Aug 29, 2015
1 parent 8946b3e commit 63b0ace
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/initializers/task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def checkGrid (object)
grid.gameid = curtime.strftime("%Y%m%d")+(begin_count+objindex+1).to_s.rjust(2, '0')

begin
localcoin = (totalcoin).abs * 0.8
localcoin = totalcoin
Rails.logger.debug localcoin
localgrid = randomGrid
prizetotal = 0
Expand Down Expand Up @@ -248,7 +248,7 @@ def checkGrid (object)
Rails.logger.debug prizetotal
Rails.logger.debug localcoin

if localcoin >= 0 then
if localcoin >= totalcoin*0.15 then
globalgrid = localgrid
totalcoin = localcoin
break
Expand Down

0 comments on commit 63b0ace

Please sign in to comment.