From 060f36aa00d74688e73cb110d043e1c7ca0fd656 Mon Sep 17 00:00:00 2001 From: Sergey Magidovich Date: Tue, 14 Jun 2016 15:21:53 +0300 Subject: [PATCH] Fix bug in update UserStats. --- editor/user_stats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 g(m_mutex); nothingToUpdate = m_userStats && m_userName == userName && - difftime(m_lastUpdate, time(nullptr)) < kSecondsInHour; + difftime(time(nullptr), m_lastUpdate) < kSecondsInHour; } if (nothingToUpdate)