Tweaked ratio calculation

This commit is contained in:
Michael Schmatz 2014-03-01 16:56:04 -08:00
parent e69e23115f
commit 488be26fd3

View file

@ -163,7 +163,7 @@ determineIfSessionShouldContinueAndUpdateLog = (sessionID, sessionRank, cb) ->
console.log "Number of games played is less than 5, continuing..."
cb null, true
else
ratio = (updatedSession.numberOfLosses - 5) / (totalNumberOfGamesPlayed)
ratio = (updatedSession.numberOfLosses) / (totalNumberOfGamesPlayed)
if ratio > 0.66
cb null, false
console.log "Ratio(#{ratio}) is bad, ending simulation"