forked from upstream-mirrors/OpenTracks
added a VisibleForTesting comment
This commit is contained in:
+1
@@ -84,6 +84,7 @@ public class SensorEventCounter {
|
|||||||
return getEventsPerMinute(newCounter, sensorTime, System.currentTimeMillis());
|
return getEventsPerMinute(newCounter, sensorTime, System.currentTimeMillis());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// VisibleForTesting
|
||||||
protected int getEventsPerMinute(int newCounter, int sensorTime, long now) {
|
protected int getEventsPerMinute(int newCounter, int sensorTime, long now) {
|
||||||
int counterChange = (newCounter - counter) & 0xFFFF;
|
int counterChange = (newCounter - counter) & 0xFFFF;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user