diff options
author | George Hazan <george.hazan@gmail.com> | 2025-01-10 18:28:28 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-01-10 18:28:28 +0300 |
commit | 3d30ed65f9e226b7b183b23ce5dba435ec491f0b (patch) | |
tree | 512db95fca97a5b6f028ed4ca05f473cbd11190c /plugins/FavContacts/src/contact_cache.cpp | |
parent | b58bd0a705dba9a32e4db1420e2d615c6ee6bd41 (diff) |
DBEVENTINFO::timestamp to become 64-bit integer
Diffstat (limited to 'plugins/FavContacts/src/contact_cache.cpp')
-rw-r--r-- | plugins/FavContacts/src/contact_cache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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;
}
|