ns-allinone-2.35/queue/cbq.cc
void CBQClass::delayed(double now)
{
	double delay = undertime_ - now + extradelay_;

	if (delay > 0 && !delayed_) {
		undertime_ += extradelay_;
		undertime_ -= (1-POWEROFTWO) * avgidle_;
		delayed_ = 1;
	}
}
/*
 * happens when a class is unable to send because it
 * is being regulated
 */
happens when a class is unable to send because it
is being regulated
happens when a class is unable to send because it is being regulated
void CBQClass::delayed(double now)
{
	double delay = undertime_ - now + extradelay_;
	if (delay > 0 && !delayed_) {
		undertime_ += extradelay_;
		undertime_ -= (1-POWEROFTWO) * avgidle_;
		delayed_ = 1;
	}
}
void CBQClass :: delayed ( double now ) { double delay = undertime_ - now + extradelay_ ; if ( delay > 0 && ! delayed_ ) { undertime_ += extradelay_ ; undertime_ -= ( 1 - POWEROFTWO ) * avgidle_ ; delayed_ = 1 ; } }
happens when a class is unable to send because it
 is being regulated
happens when a class is unable to send because it is being regulated