Browse Source

default speed to 5Mbit/s

devel
http 9 years ago
parent
commit
abe665e761
  1. 4
      agent/structs.py

4
agent/structs.py

@ -53,8 +53,8 @@ class TariffStruct(BaseStruct):
def __init__(self, tariff_id=0, speedIn=None, speedOut=None): def __init__(self, tariff_id=0, speedIn=None, speedOut=None):
self.tid = tariff_id 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): def serialize(self):
dt = pack("!Iff", int(self.tid), float(self.speedIn), float(self.speedOut)) dt = pack("!Iff", int(self.tid), float(self.speedIn), float(self.speedOut))

Loading…
Cancel
Save