Skip to content

Commit

Permalink
Remove redundant type casts
Browse files Browse the repository at this point in the history
  • Loading branch information
RoanH committed Aug 26, 2020
1 parent 9164313 commit 2af84c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KeysPerSecond/src/me/roan/kps/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ protected static final void mainLoop(){
max = totaltmp;
}
if(totaltmp != 0){
avg = (avg * (double)n + (double)totaltmp) / ((double)n + 1.0D);
avg = (avg * n + totaltmp) / (n + 1.0D);
n++;
TotPanel.hits += currentTmp;
System.out.println("Current keys per second: " + totaltmp + " time frame: " + tmp);
Expand Down

0 comments on commit 2af84c8

Please sign in to comment.