mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
reset current_point when time error
This commit is contained in:
@@ -265,6 +265,7 @@ skynet_updatetime(void) {
|
|||||||
uint64_t cp = gettime();
|
uint64_t cp = gettime();
|
||||||
if(cp < TI->current_point) {
|
if(cp < TI->current_point) {
|
||||||
skynet_error(NULL, "time diff error: change from %lld to %lld", cp, TI->current_point);
|
skynet_error(NULL, "time diff error: change from %lld to %lld", cp, TI->current_point);
|
||||||
|
TI->current_point = cp;
|
||||||
} else if (cp != TI->current_point) {
|
} else if (cp != TI->current_point) {
|
||||||
uint32_t diff = (uint32_t)(cp - TI->current_point);
|
uint32_t diff = (uint32_t)(cp - TI->current_point);
|
||||||
TI->current_point = cp;
|
TI->current_point = cp;
|
||||||
|
|||||||
Reference in New Issue
Block a user