Skip to content

Commit

Permalink
Correct bug which prevented lag spike detection from catching many sp…
Browse files Browse the repository at this point in the history
…ikes
  • Loading branch information
LunNova committed Feb 14, 2016
1 parent 0368b2f commit d837ca7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ private static String toString(ThreadInfo threadInfo, boolean name) {
}

private void start() {
final int sleepTime = Math.max(1000, (lagSpikeMillis * 1000) / 6);
final int sleepTime = Math.max(1000, lagSpikeMillis / 6);
Thread detectorThread = new Thread(new Runnable() {
@Override
public void run() {
Expand Down

0 comments on commit d837ca7

Please sign in to comment.