Skip to content

Commit

Permalink
Use VTIM_timespec()
Browse files Browse the repository at this point in the history
  • Loading branch information
bsdphk committed Oct 13, 2021
1 parent 79bfe18 commit 4ae73a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/varnishhist/varnishhist.c
Expand Up @@ -367,8 +367,7 @@ accumulate(struct VSL_data *vsl, struct VSL_transaction * const pt[],

if (vsl_ts > vsl_to) {
struct timespec ts;
ts.tv_nsec = (long)(modf(vsl_ts - vsl_to, &t) * 1e9);
ts.tv_sec = (long)t;
ts = VTIM_timespec(vsl_ts - vsl_to);
i = pthread_cond_timedwait(&timebend_cv, &mtx, &ts);
assert(i == 0 || i == ETIMEDOUT);
}
Expand Down

0 comments on commit 4ae73a5

Please sign in to comment.