diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-12-11 08:19:00 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2023-03-24 08:32:17 -0400 |
| commit | 4f830a0799e74bd18af18e3ded5d6e16c79a7d56 (patch) | |
| tree | e92b4fe1c6e633c1667f718f6e9a87d22d8518e3 /lib/event.c | |
| parent | 8c1186d38e9226e29bb6eed0745a7638a7f66e5b (diff) | |
*: Convert thread_timer_remain_XXX to event_timer_remain_XXX
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/event.c')
| -rw-r--r-- | lib/event.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/event.c b/lib/event.c index 12b40e1121..8355b3cdd4 100644 --- a/lib/event.c +++ b/lib/event.c @@ -733,7 +733,7 @@ void thread_master_free(struct thread_master *m) } /* Return remain time in milliseconds. */ -unsigned long thread_timer_remain_msec(struct event *thread) +unsigned long event_timer_remain_msec(struct event *thread) { int64_t remain; @@ -748,12 +748,12 @@ unsigned long thread_timer_remain_msec(struct event *thread) } /* Return remain time in seconds. */ -unsigned long thread_timer_remain_second(struct event *thread) +unsigned long event_timer_remain_second(struct event *thread) { - return thread_timer_remain_msec(thread) / 1000LL; + return event_timer_remain_msec(thread) / 1000LL; } -struct timeval thread_timer_remain(struct event *thread) +struct timeval event_timer_remain(struct event *thread) { struct timeval remain; frr_with_mutex (&thread->mtx) { @@ -783,8 +783,7 @@ static int time_hhmmss(char *buf, int buf_size, long sec) char *thread_timer_to_hhmmss(char *buf, int buf_size, struct event *t_timer) { if (t_timer) { - time_hhmmss(buf, buf_size, - thread_timer_remain_second(t_timer)); + time_hhmmss(buf, buf_size, event_timer_remain_second(t_timer)); } else { snprintf(buf, buf_size, "--:--:--"); } |
