minor optimize

This commit is contained in:
Nick Peng
2019-08-16 20:13:09 +08:00
parent 6291c17d6a
commit 87f04571b1
14 changed files with 127 additions and 80 deletions

View File

@@ -1470,9 +1470,10 @@ static void _fast_ping_period_run(void)
struct hlist_node *tmp = NULL;
int i = 0;
struct timeval now;
struct timezone tz;
struct timeval interval;
int64_t millisecond;
gettimeofday(&now, NULL);
gettimeofday(&now, &tz);
LIST_HEAD(action);
pthread_mutex_lock(&ping.map_lock);