make PacketCounter nicer
All checks were successful
/ Build BaseBand (push) Successful in 2m40s

This commit is contained in:
Daniella / Tove 2024-10-05 03:38:32 +02:00
parent f0df260901
commit 80cf194d84
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -12,7 +12,7 @@ import java.util.LinkedList;
import java.util.Queue;
@ClientCategory
@Description("Shows how many packets per second are being sent/received.")
@Description("Shows how many packets per §lHALF§r second are being sent/received.")
public class PacketCounter extends Feature {
long totUp = 0, totDown = 0;
@ -84,7 +84,7 @@ public class PacketCounter extends Feature {
}
public boolean passed() {
return (System.currentTimeMillis() - time) >= 1000;
return (System.currentTimeMillis() - time) >= 500;
}
}
}