diff --git a/controller/limits/limitClasses.go b/controller/limits/limitClasses.go index 24f319dc..e6a22c19 100644 --- a/controller/limits/limitClasses.go +++ b/controller/limits/limitClasses.go @@ -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, + }, } }