48 else if (delay < tv->tv_usec)
56 const int sec = delay / 1000000;
57 const int usec = delay % 1000000;
65 else if (sec == tv->tv_sec)
67 if (usec < tv->tv_usec)
76 (int64_t)tv->tv_sec, (
long)tv->tv_usec, (
int)ret);
90 msg(
M_INFO,
"Output Traffic Shaping initialized at %d bytes per second",
void shaper_msg(struct shaper *s)
void shaper_reset_wakeup(struct shaper *s)
bool shaper_soonest_event(struct timeval *tv, int delay)