From 3d30ed65f9e226b7b183b23ce5dba435ec491f0b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 10 Jan 2025 18:28:28 +0300 Subject: DBEVENTINFO::timestamp to become 64-bit integer --- plugins/FavContacts/src/contact_cache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/FavContacts/src/contact_cache.cpp') diff --git a/plugins/FavContacts/src/contact_cache.cpp b/plugins/FavContacts/src/contact_cache.cpp index 12dabbb2d0..161b3f2d8f 100644 --- a/plugins/FavContacts/src/contact_cache.cpp +++ b/plugins/FavContacts/src/contact_cache.cpp @@ -30,7 +30,7 @@ int __cdecl CContactCache::OnDbEventAdded(WPARAM hContact, LPARAM hEvent) if (dbei.eventType != EVENTTYPE_MESSAGE) return 0; - float weight = GetEventWeight(time(0) - dbei.timestamp); + float weight = GetEventWeight(time(0) - dbei.getUnixtime()); float q = GetTimeWeight(time(0) - m_lastUpdate); m_lastUpdate = time(0); if (!weight) @@ -88,7 +88,7 @@ void CContactCache::Rebuild() while (MEVENT hEvent = cursor.FetchNext()) { DBEVENTINFO dbei = {}; if (!db_event_get(hEvent, &dbei)) { - if (float weight = GetEventWeight(timestamp - dbei.timestamp)) { + if (float weight = GetEventWeight(timestamp - dbei.getUnixtime())) { if (dbei.eventType == EVENTTYPE_MESSAGE) info->rate += weight; } -- cgit v1.2.3