Incorrect use of std::atomic

Former-commit-id: 5dc84850addff084c95f9280718fcb1d6fee3b82
This commit is contained in:
John Sully 2020-02-17 19:07:13 -05:00
parent 2c28a3f3d7
commit 950cda8ea5

View File

@ -1780,7 +1780,7 @@ void updateCachedTime(int update_daylight_info) {
t /= 1000;
__atomic_store(&g_pserver->mstime, &t, __ATOMIC_RELAXED);
t /= 1000;
__atomic_store(&g_pserver->unixtime, &t, __ATOMIC_RELAXED);
g_pserver->unixtime = t;
/* To get information about daylight saving time, we need to call
* localtime_r and cache the result. However calling localtime_r in this