~kris/9p

9hist

9a9f26a62d1deb6cb340dd3a07bc33875bc15641 — David du Colombier 34 years ago 996025e
Plan 9 from Bell Labs 1992-06-15
1 files changed, 4 insertions(+), 2 deletions(-)

M port/stil.c
M port/stil.c => port/stil.c +4 -2
@@ 40,7 40,9 @@ enum
	ILgain		= 8,
};

#define Starttimer(s)	{(s)->timeout = 0; (s)->fasttime = (Fasttime*(s)->rtt)/Iltickms; (s)->slowtime = (Slowtime*(s)->rtt)/Iltickms; }
#define Starttimer(s)	{(s)->timeout = 0; \
			 (s)->fasttime = (Fasttime*(s)->rtt)/Iltickms; \
			 (s)->slowtime = (Slowtime*(s)->rtt)/Iltickms; }

void	ilrcvmsg(Ipconv*, Block*);
void	ilackproc(void*);


@@ 224,7 226,7 @@ ilackto(Ilcb *ic, ulong ackto)

	if(ic->rttack == ackto) {
		t = TK2MS(MACHP(0)->ticks - ic->ackms);
		/* Guard against the ulong zero wrap */
		/* Guard against the ulong zero wrap if MACP->ticks */
		if(t < 100*ic->rtt)
			ic->rtt = (ic->rtt*(ILgain-1)+t)/ILgain;
		if(ic->rtt < Iltickms)