From abe665e761a8153375ce8adfaf1bffdd8a17c1d1 Mon Sep 17 00:00:00 2001 From: http Date: Thu, 2 Mar 2017 11:12:11 +0300 Subject: [PATCH] default speed to 5Mbit/s --- agent/structs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/structs.py b/agent/structs.py index e53d116..408374b 100644 --- a/agent/structs.py +++ b/agent/structs.py @@ -53,8 +53,8 @@ class TariffStruct(BaseStruct): def __init__(self, tariff_id=0, speedIn=None, speedOut=None): self.tid = tariff_id - self.speedIn = float(speedIn or 0.0625) - self.speedOut = float(speedOut or 0.0625) + self.speedIn = float(speedIn or 5.0625) + self.speedOut = float(speedOut or 5.0625) def serialize(self): dt = pack("!Iff", int(self.tid), float(self.speedIn), float(self.speedOut))