cal: improve periodic calendar update
commitfba92f008f1dfba4ee89fcaddb9bfd8753c8576e
authorStefan Becker <chemobejk@gmail.com>
Sun, 1 Mar 2015 17:50:43 +0000 (1 19:50 +0200)
committerStefan Becker <chemobejk@gmail.com>
Sun, 1 Mar 2015 17:50:43 +0000 (1 19:50 +0200)
tree5a67c62f4b867251f058b9a0e6b1501837b3d730
parent7611ac474b1ffe8d7864ee6183891feb2d53feaf
cal: improve periodic calendar update

The default granularity in Exchange is 15 minutes, so it makes sense to
check for calendar updates every 15 minutes, not 30 minutes.

Instead of a fixed update interval, schedule the update 30 seconds
before the next calendar interval starts. This will make sure that OCS
has been updated with the latest information before the next calendar
interval starts.
src/core/sipe-cal.c