Fix private class to static private class (dynamicity is not necessary there)

This commit is contained in:
Frédéric Brégier 2012-05-18 15:26:21 +03:00
parent a1a60ec5b6
commit 7d4a276ab0

View File

@ -117,7 +117,7 @@ public class TrafficCounter {
/**
* Class to implement monitoring at fix delay
*/
private class TrafficMonitoring implements Runnable {
private static class TrafficMonitoring implements Runnable {
/**
* The associated TrafficShapingHandler
*/
@ -145,8 +145,8 @@ public class TrafficCounter {
@Override
public void run() {
try {
Thread.currentThread().setName(name);
for (; monitorActive.get();) {
Thread.currentThread().setName(counter.name);
for (; counter.monitorActive.get();) {
long check = counter.checkInterval.get();
if (check > 0) {
Thread.sleep(check);