From 3df01c4e6409de1025758cc0be1cc10aa271c821 Mon Sep 17 00:00:00 2001 From: Quentin De Coninck Date: Thu, 28 Sep 2017 10:11:54 +0200 Subject: [PATCH] forgetting self is unforgettable... --- src/mpLinkCharacteristics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mpLinkCharacteristics.py b/src/mpLinkCharacteristics.py index e5cd68d..40b512d 100644 --- a/src/mpLinkCharacteristics.py +++ b/src/mpLinkCharacteristics.py @@ -13,7 +13,7 @@ class MpLinkCharacteristics: bandwidthDelayProduct = (float(self.bandwidth) * 125000.0) * (rtt / 1000.0) return int(math.ceil(bandwidthDelayProduct * 1.0 / 1500.0)) - def extractQueuingDelay(queueSize, bandwidth, delay, mtu=1500): + def extractQueuingDelay(self, queueSize, bandwidth, delay, mtu=1500): rtt = 2 * float(delay) bdp_queue_size = int((float(rtt) * float(bandwidth) * 1024 * 1024) / (int(mtu) * 8 * 1000)) if int(queueSize) <= bdp_queue_size: