Commit 2b24109e authored by David G Andersen's avatar David G Andersen

Added the DELAY_COMPENSATION code. It's another cheap hack, but it

gets the job done.  Don't try for less than 80us granularity, though,
or, well, you just won't get it.
parent ea1817c2
......@@ -12,6 +12,16 @@
* 1999-08-27
* Account for the time it takes us to enqueue and such.
* Could be variable depending on load, of course, but this
* is better than nothing.
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
......@@ -74,6 +84,10 @@ int packet_enq(char *data, int datalen, int usecs, struct sockaddr_in from,
int fromlen)
struct packet *tmp;
/* XXX: This is probably not good enough long term */
if (usecs < 0) usecs = 0; /* XXX. Barf. XXX. :-) */
tmp = C_MALLOC(sizeof(*tmp));
if (ptail) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment