From e627cf739722b317f581c36698337846cf424300 Mon Sep 17 00:00:00 2001 From: Remi Boure Date: Tue, 28 Mar 2023 09:43:31 +0200 Subject: [PATCH] Fix packets sent --- src/main/java/fr/ntr/scheduler/Scheduler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/fr/ntr/scheduler/Scheduler.java b/src/main/java/fr/ntr/scheduler/Scheduler.java index 418fcc1..b2dc953 100644 --- a/src/main/java/fr/ntr/scheduler/Scheduler.java +++ b/src/main/java/fr/ntr/scheduler/Scheduler.java @@ -24,9 +24,9 @@ public abstract class Scheduler { }else { p.setDurationSending(ticks); } + userMax.getPacketsSent().add(p); + userMax.getPacketsToSend().remove(p); } - userMax.getPacketsSent().add(p); - userMax.getPacketsToSend().remove(p); frame[ts][sp].setUser(userMax); frame[ts][sp].setBandwidth(userMax.getBandwidthTable()[ts][sp]); }