mirror of
https://github.com/openziti/zrok.git
synced 2024-11-25 17:43:53 +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
|
||||
}
|
||||
|
||||
func newConfigBandwidthClasses(cfgClass *BandwidthPerPeriod) []store.BandwidthClass {
|
||||
func newConfigBandwidthClasses(cfg *BandwidthPerPeriod) []store.BandwidthClass {
|
||||
return []store.BandwidthClass{
|
||||
&configBandwidthClass{
|
||||
periodInMinutes: int(cfgClass.Period.Minutes()),
|
||||
bw: cfgClass.Warning,
|
||||
periodInMinutes: int(cfg.Period.Minutes()),
|
||||
bw: cfg.Warning,
|
||||
limitAction: store.WarningLimitAction,
|
||||
},
|
||||
&configBandwidthClass{
|
||||
periodInMinutes: int(cfg.Period.Minutes()),
|
||||
bw: cfg.Limit,
|
||||
limitAction: store.LimitLimitAction,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user