Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
andreakarasho committed Feb 17, 2020
2 parents 8876679 + 77c2fe9 commit 1348d78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utility/MathHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static int PercetangeOf(int current, int max)
if (current <= 0 || max <= 0)
return 0;

return current / max * 100;
return (current * 100) / max;
}

[MethodImpl(256)]
Expand Down

0 comments on commit 1348d78

Please sign in to comment.