Use long for millisecondsInOneDay

Fixes #34
This commit is contained in:
2016-03-15 19:55:50 -04:00
parent 59ed9ec9bd
commit 8102c18c67
2 changed files with 3 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ import java.util.TimeZone;
public class DateHelper public class DateHelper
{ {
public static int millisecondsInOneDay = 24 * 60 * 60 * 1000; public static long millisecondsInOneDay = 24 * 60 * 60 * 1000;
public static long getLocalTime() public static long getLocalTime()
{ {

View File

@@ -124,7 +124,7 @@ public class ScoreList
return lastScore; return lastScore;
} }
public int[] getAllValues(Long fromTimestamp, Long toTimestamp, Integer divisor) public int[] getAllValues(Long fromTimestamp, Long toTimestamp, Long divisor)
{ {
// Force rebuild of the score table // Force rebuild of the score table
getNewestValue(); getNewestValue();
@@ -157,7 +157,7 @@ public class ScoreList
} }
public int[] getAllValues(int divisor) public int[] getAllValues(long divisor)
{ {
Repetition oldestRep = habit.repetitions.getOldest(); Repetition oldestRep = habit.repetitions.getOldest();
if(oldestRep == null) return new int[0]; if(oldestRep == null) return new int[0];