From 1719c07761ccc839820a70914013328b7f4da322 Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Mon, 2 Feb 2015 07:33:10 +0000 Subject: VKontakte: fix interval processing for news and events git-svn-id: http://svn.miranda-ng.org/main/trunk@11981 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_feed.cpp | 4 ++-- 1 file 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(); -- cgit v1.2.3