Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorSergey Magidovich <mgsergio@mapswithme.com>2016-06-14 15:21:53 +0300
committerVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2016-06-23 19:36:48 +0300
commit060f36aa00d74688e73cb110d043e1c7ca0fd656 (patch)
treeff3629beb7b2afd1e38d1fe2add8c3cfbd352e8d /editor
parentbdd0c80db66be593354a84e67985cc06969a7326 (diff)
Fix bug in update UserStats.
Diffstat (limited to 'editor')
-rw-r--r--editor/user_stats.cpp2
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)