Skip to content

Commit

Permalink
Merge pull request #614 from Amoghrd/sampling
Browse files Browse the repository at this point in the history
Sampling check
  • Loading branch information
Amoghrd authored Apr 12, 2024
2 parents 4077210 + 0dae78b commit 0f46565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/ebpf/agent_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ func (c *AgentController) setEnvConfig(coll *flowslatest.FlowCollector) []corev1
}

sampling := coll.Spec.Agent.EBPF.Sampling
if sampling != nil && *sampling > 1 {
if sampling != nil && *sampling > 0 {
config = append(config, corev1.EnvVar{
Name: envSampling,
Value: strconv.Itoa(int(*sampling)),
Expand Down

0 comments on commit 0f46565

Please sign in to comment.