thresh = 2048;
} else if (bwend.tv_usec < 100) {
thresh *= 2;
if (thresh > 32768)
if (thresh > (1 << 24))
thresh = 32768;
thresh = (1 << 24);
}
TIMEVAL_TO_TIMESPEC(&bwend, &ts);