Hi Cafuego,

I noticed that the userpoints are not expiring evenly on my site. I have it set to expire one per hour. But sometimes it only does one in an hour and a half. I have cron running twice at 00 and at 30, Here is a recent log:

-1 Approved 03/04/2010 - 14:30 evaporate Evaporate None
-1 Approved 03/04/2010 - 13:00 evaporate Evaporate None
-1 Approved 03/04/2010 - 12:00 evaporate Evaporate None
-1 Approved 03/04/2010 - 10:30 evaporate Evaporate None
-1 Approved 03/04/2010 - 09:00 evaporate Evaporate None
-1 Approved 03/04/2010 - 08:00 evaporate Evaporate None
-1 Approved 03/04/2010 - 07:00 evaporate Evaporate None
-1 Approved 03/04/2010 - 06:00 evaporate Evaporate None
-1 Approved 03/04/2010 - 04:30 evaporate Evaporate None
-1 Approved 03/04/2010 - 03:00 evaporate Evaporate None

Comments

cafuego’s picture

Hmmm... that's probably due to the timestamp being set to a few seconds after the cron run. The next time cron runs, an hour later, it may be 59 minutes and 59 seconds since the last run, so it'll skip until the next half hour.

The latest dev release should fix this by storing the last run time as three minutes prior to the actual run time.

cafuego’s picture

Status: Active » Needs review
mcfilms’s picture

For the last few days the userpoints have been expiring every hour per my settings. I think we can mark this issue "closed".

Good work!

cafuego’s picture

Assigned: Unassigned » cafuego
Status: Needs review » Closed (fixed)

Right.

Fixed in version 1.0. Marked as closed.