Skip to content

Commit

Permalink
fix: Adjusting to
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrodecki-samsung committed Oct 29, 2024
1 parent c793c09 commit bff2df3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/store/broadcastjob.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,14 @@ func broadcastJobMetricFamilies(allowAnnotationsList, allowLabelsList []string)
metric.Gauge,
"",
wrapBroadcastJobFunc(func(bj *v1alpha1.BroadcastJob) *metric.Family {
value := 0.0
if bj != nil && bj.Spec.CompletionPolicy.ActiveDeadlineSeconds != nil {
value = float64(*bj.Spec.CompletionPolicy.ActiveDeadlineSeconds)
}
return &metric.Family{
Metrics: []*metric.Metric{
{
Value: float64(*bj.Spec.CompletionPolicy.ActiveDeadlineSeconds),
Value: value,
},
},
}
Expand Down

0 comments on commit bff2df3

Please sign in to comment.