diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-02-02 07:33:10 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-02-02 07:33:10 +0000 |
commit | 1719c07761ccc839820a70914013328b7f4da322 (patch) | |
tree | 0eb5b6af9d3c5c400c104ef32d4d9fd658fa346d /protocols/VKontakte | |
parent | bc12cb40df2111e973107c0bc3172ea274f774e7 (diff) |
VKontakte: fix interval processing for news and events
git-svn-id: http://svn.miranda-ng.org/main/trunk@11981 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte')
-rw-r--r-- | protocols/VKontakte/src/vk_feed.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_feed.cpp b/protocols/VKontakte/src/vk_feed.cpp index e6c0d1a4ca..c0e651ed77 100644 --- a/protocols/VKontakte/src/vk_feed.cpp +++ b/protocols/VKontakte/src/vk_feed.cpp @@ -602,11 +602,11 @@ void CVkProto::RetrieveUnreadEvents() return;
time_t tLastNotificationsTime = getDword("LastNotificationsTime", time(NULL) - 24 * 60 * 60);
- if (time(NULL) - tLastNotificationsTime >= m_iNotificationsInterval * 60 && m_bNotificationsEnabled)
+ if (time(NULL) - tLastNotificationsTime - m_iNotificationsInterval * 60 >= -3 && m_bNotificationsEnabled)
RetrieveUnreadNotifications(tLastNotificationsTime);
time_t tLastNewsTime = getDword("LastNewsTime", time(NULL) - 24 * 60 * 60);
- if (time(NULL) - tLastNewsTime >= m_iNewsInterval * 60 && m_bNewsEnabled)
+ if (time(NULL) - tLastNewsTime - m_iNewsInterval * 60 >= -3 && m_bNewsEnabled)
RetrieveUnreadNews(tLastNewsTime);
NewsClearHistory();
|