Incorrect use of std::atomic
Former-commit-id: 5dc84850addff084c95f9280718fcb1d6fee3b82
This commit is contained in:
parent
d90ebb9f85
commit
77f90d9515
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user