Add event from SessionS to ThresholdS

This commit is contained in:
TeoV
2018-03-02 09:37:08 -05:00
committed by Dan Christian Bogos
parent 9c5b611ea9
commit eb8bcd7508

View File

@@ -399,7 +399,7 @@ func (fsev FSEvent) V1AuthorizeArgs() (args *sessions.V1AuthorizeArgs) {
args.GetAttributes = true
}
if strings.Index(subsystems, utils.MetaThresholds) != -1 {
args.ProcessThreshold = utils.BoolPointer(true)
*args.ProcessThreshold = true
}
return
}
@@ -434,7 +434,7 @@ func (fsev FSEvent) V1InitSessionArgs() (args *sessions.V1InitSessionArgs) {
args.GetAttributes = true
}
if strings.Index(subsystems, utils.MetaThresholds) != -1 {
args.ProcessThreshold = utils.BoolPointer(true)
*args.ProcessThreshold = true
}
return
}
@@ -466,7 +466,7 @@ func (fsev FSEvent) V1TerminateSessionArgs() (args *sessions.V1TerminateSessionA
args.ReleaseResources = true
}
if strings.Index(subsystems, utils.MetaThresholds) != -1 {
args.ProcessThreshold = utils.BoolPointer(true)
*args.ProcessThreshold = true
}
return
}