We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55ef801 commit 6f8e5bdCopy full SHA for 6f8e5bd
rn3/src/filecopy/FileCopyClient.java
@@ -231,8 +231,10 @@ public void run() {
231
cancelTimer(sendbuffer.get(receivedSeqNumber));
232
long packrtt = System.nanoTime() - sendbuffer.get(receivedSeqNumber).getTimestamp();
233
System.out.println(packrtt);
234
+ if(receivedSeqNumber!=0){
235
rtt_plus(packrtt);
236
computeTimeoutValue(packrtt);
237
+ }
238
sendbuffer.get(receivedSeqNumber).setValidACK(true);
239
if (receivedSeqNumber == sendbase) {
240
FileCopyClient.ack_plus();
0 commit comments