Use long for millisecondsInOneDay

Fixes #34
pull/69/head
Alinson S. Xavier 10 years ago
parent 59ed9ec9bd
commit 8102c18c67

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

@ -124,7 +124,7 @@ public class ScoreList
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
getNewestValue();
@ -157,7 +157,7 @@ public class ScoreList
}
public int[] getAllValues(int divisor)
public int[] getAllValues(long divisor)
{
Repetition oldestRep = habit.repetitions.getOldest();
if(oldestRep == null) return new int[0];

Loading…
Cancel
Save