|
@ -289,6 +289,8 @@ public class Main |
|
|
{ |
|
|
{ |
|
|
if (dailyRequestCount > requestLimitDay) // daily request limit reached, wait until the next day |
|
|
if (dailyRequestCount > requestLimitDay) // daily request limit reached, wait until the next day |
|
|
{ |
|
|
{ |
|
|
|
|
|
//Write info what you did today |
|
|
|
|
|
writeLog("Daily requests done. Current status: Athlete "+athleteId+", Activity "+simpleActivityId); |
|
|
Calendar tomorrow = new GregorianCalendar(); |
|
|
Calendar tomorrow = new GregorianCalendar(); |
|
|
tomorrow.setTimeInMillis(System.currentTimeMillis()); |
|
|
tomorrow.setTimeInMillis(System.currentTimeMillis()); |
|
|
tomorrow.set(Calendar.DAY_OF_YEAR, tomorrow.get(Calendar.DAY_OF_YEAR) + 1); |
|
|
tomorrow.set(Calendar.DAY_OF_YEAR, tomorrow.get(Calendar.DAY_OF_YEAR) + 1); |
|
@ -305,8 +307,6 @@ public class Main |
|
|
catch (InterruptedException e1) |
|
|
catch (InterruptedException e1) |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
//Write info what you did today |
|
|
|
|
|
writeLog("Daily requests done. Current status: Athlete "+athleteId+", Activity "+simpleActivityId); |
|
|
|
|
|
dailyRequestCount=0; |
|
|
dailyRequestCount=0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|