ping: increase ping work thread priority

This commit is contained in:
Nick Peng
2022-11-16 22:11:18 +08:00
parent f6b9a1b81a
commit bc379a3c3e
2 changed files with 14 additions and 0 deletions

View File

@@ -1762,6 +1762,8 @@ static void *_fast_ping_work(void *arg)
int sleep_time = 0;
unsigned long expect_time = 0;
setpriority(PRIO_PROCESS, 0, -5);
sleep_time = sleep;
now = get_tick_count() - sleep;
last = now;