Skip to content

Commit

Permalink
Properly reset the total count when pressing Ctrl+P
Browse files Browse the repository at this point in the history
fix issue #201
see #42
  • Loading branch information
RoanH committed Oct 9, 2021
1 parent 6298eb9 commit 37cbb34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions KeysPerSecond/src/dev/roanh/kps/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -1156,13 +1156,14 @@ protected static final void exit(){
}

/**
* Resets avg, max & cur
* Resets avg, max, tot & cur
*/
protected static final void resetStats(){
System.out.println("Reset max & avg | max: " + max + " avg: " + avg);
System.out.println("Reset max & avg | max: " + max + " avg: " + avg + " tot: " + TotPanel.hits);
n = 0;
avg = 0;
max = 0;
TotPanel.hits = 0;
tmp.set(0);
graph.reset();
frame.repaint();
Expand Down

0 comments on commit 37cbb34

Please sign in to comment.