schedule_job uses seconds to support time values larger than 49 days
added schedule_job_ms for ms resolution events
This commit is contained in:
@@ -1530,7 +1530,7 @@ static void schedule_expire(private_kernel_klips_ipsec_t *this,
|
||||
expire->reqid = reqid;
|
||||
expire->type = type;
|
||||
job = callback_job_create((callback_job_cb_t)sa_expires, expire, free, NULL);
|
||||
charon->scheduler->schedule_job(charon->scheduler, (job_t*)job, time * 1000);
|
||||
charon->scheduler->schedule_job(charon->scheduler, (job_t*)job, time);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -219,7 +219,7 @@ static void fire_roam_job(private_kernel_netlink_net_t *this, bool address)
|
||||
now.tv_usec -= 1000000;
|
||||
}
|
||||
this->last_roam = now;
|
||||
charon->scheduler->schedule_job(charon->scheduler,
|
||||
charon->scheduler->schedule_job_ms(charon->scheduler,
|
||||
(job_t*)roam_job_create(address), ROAM_DELAY);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user