Skip to content

Commit

Permalink
Update submit.js
Browse files Browse the repository at this point in the history
fixed bug for "[WARN] Failed to get submission beat ratio."
  • Loading branch information
SparklesCN authored Aug 7, 2019
1 parent 8dc0b2a commit 9a0e155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/submit.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ cmd.handler = function(argv) {

let ratio = 0.0;
for (let score of scores) {
if (parseFloat(score[0]) > myRuntime)
if (parseFloat(score[0]) >= myRuntime)
ratio += parseFloat(score[1]);
}

Expand Down

0 comments on commit 9a0e155

Please sign in to comment.