mirror of
https://github.com/openziti/zrok.git
synced 2024-12-01 20:43:51 +01:00
include both warning and limits globals (#606)
This commit is contained in:
parent
8a255a0ee8
commit
db71e06610
@ -11,13 +11,18 @@ type configBandwidthClass struct {
|
|||||||
limitAction store.LimitAction
|
limitAction store.LimitAction
|
||||||
}
|
}
|
||||||
|
|
||||||
func newConfigBandwidthClasses(cfgClass *BandwidthPerPeriod) []store.BandwidthClass {
|
func newConfigBandwidthClasses(cfg *BandwidthPerPeriod) []store.BandwidthClass {
|
||||||
return []store.BandwidthClass{
|
return []store.BandwidthClass{
|
||||||
&configBandwidthClass{
|
&configBandwidthClass{
|
||||||
periodInMinutes: int(cfgClass.Period.Minutes()),
|
periodInMinutes: int(cfg.Period.Minutes()),
|
||||||
bw: cfgClass.Warning,
|
bw: cfg.Warning,
|
||||||
limitAction: store.WarningLimitAction,
|
limitAction: store.WarningLimitAction,
|
||||||
},
|
},
|
||||||
|
&configBandwidthClass{
|
||||||
|
periodInMinutes: int(cfg.Period.Minutes()),
|
||||||
|
bw: cfg.Limit,
|
||||||
|
limitAction: store.LimitLimitAction,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user