Skip to content

Commit

Permalink
Merge pull request #2080 from cezarygerard/patch-3
Browse files Browse the repository at this point in the history
Use time.Duration.String func to print duration
  • Loading branch information
k8s-ci-robot authored Apr 18, 2023
2 parents 73bd213 + 079c4e8 commit 34fea07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/servicemetrics/servicemetrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (c *Controller) export() {
l4ProtocolState, ipStackState, gcpFeaturesState := calculateMetrics(allServices)

updatePrometheusMetrics(l4ProtocolState, ipStackState, gcpFeaturesState)
klog.Infof("Exported service metrics in %v ms", time.Since(start).Microseconds())
klog.Infof("Exported service metrics in %s", time.Since(start))
}

func calculateMetrics(services []*v1.Service) (map[serviceL4ProtocolMetricState]int64, map[serviceIPStackMetricState]int64, map[serviceGCPFeaturesMetricState]int64) {
Expand Down

0 comments on commit 34fea07

Please sign in to comment.