Searched refs:q_size (Results 1 - 1 of 1) sorted by relevance

/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Dip_dummynet.c1012 * avg <- (1-w_q) * avg + w_q * q_size
1013 * where q_size is the queue length (measured in bytes or * packets).
1015 * If q_size == 0, we compute the idle time for the link, and set
1027 u_int q_size = (fs->flags_fs & DN_QSIZE_IS_BYTES) ? q->len_bytes : q->len; local
1029 DPRINTF(("\ndummynet: %d q: %2u ", (int) curr_time, q_size));
1032 if (q_size != 0) {
1034 * queue is not empty, avg <- avg + (q_size - avg) * w_q
1036 int diff = SCALE(q_size) - q->avg;

Completed in 21 milliseconds