forked from upstream-mirrors/OpenTracks
Code cleanup: use class name for timer name
This commit is contained in:
@@ -87,7 +87,7 @@ public abstract class SensorManager {
|
||||
}
|
||||
}
|
||||
};
|
||||
timer = new Timer("SensorManagerTimer");
|
||||
timer = new Timer(SensorManager.class.getSimpleName());
|
||||
timer.schedule(timerTask, RETRY_PERIOD, RETRY_PERIOD);
|
||||
}
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ public class TimerTaskExecutor {
|
||||
periodicTask.run(trackRecordingService);
|
||||
}
|
||||
};
|
||||
timer = new Timer("TimerTaskExecutorTimer");
|
||||
timer = new Timer(TimerTaskExecutor.class.getSimpleName());
|
||||
long next = System.currentTimeMillis() + interval - (tripStatistics.getTotalTime() % interval);
|
||||
timer.scheduleAtFixedRate(timerTask, new Date(next), interval);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user