mirror of https://github.com/ehang-io/nps
fix rete limit bug when add client first
parent
77ed98d407
commit
9ff29c810c
|
@ -61,10 +61,6 @@ func (s *ClientController) Add() {
|
|||
FlowLimit: int64(s.GetIntNoErr("flow_limit")),
|
||||
},
|
||||
}
|
||||
if t.RateLimit > 0 {
|
||||
t.Rate = rate.NewRate(int64(t.RateLimit * 1024))
|
||||
t.Rate.Start()
|
||||
}
|
||||
if err := file.GetDb().NewClient(t); err != nil {
|
||||
s.AjaxErr(err.Error())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue