diff options
author | Sergey Magidovich <mgsergio@mapswithme.com> | 2016-06-14 15:21:53 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-06-23 19:36:48 +0300 |
commit | 060f36aa00d74688e73cb110d043e1c7ca0fd656 (patch) | |
tree | ff3629beb7b2afd1e38d1fe2add8c3cfbd352e8d /editor | |
parent | bdd0c80db66be593354a84e67985cc06969a7326 (diff) |
Fix bug in update UserStats.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/user_stats.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/user_stats.cpp b/editor/user_stats.cpp index 4b0a9290e7..5c3805ccac 100644 --- a/editor/user_stats.cpp +++ b/editor/user_stats.cpp @@ -135,7 +135,7 @@ void UserStatsLoader::Update(string const & userName, UpdatePolicy const policy, { lock_guard<mutex> g(m_mutex); nothingToUpdate = m_userStats && m_userName == userName && - difftime(m_lastUpdate, time(nullptr)) < kSecondsInHour; + difftime(time(nullptr), m_lastUpdate) < kSecondsInHour; } if (nothingToUpdate) |