Skip to content

Commit

Permalink
Merge branch 'srikiz-fix-whitespace-issue' into 'master'
Browse files Browse the repository at this point in the history
Fix metrics spacing

See merge request nvidia/container-toolkit/gpu-monitoring-tools!39
  • Loading branch information
shivamerla committed Nov 30, 2020
2 parents 27a2ba8 + 190feda commit d5c9bb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func FormatCounters(c []Counter) (string, error) {

var metricsFormat = `
{{ range $dev := . }}{{ range $val := $dev }}
{{ $val.Name }}{gpu="{{ $val.GPU }}", UUID="{{ $val.GPUUUID }}", device="{{ $val.GPUDevice }}"
{{ $val.Name }}{gpu="{{ $val.GPU }}",UUID="{{ $val.GPUUUID }}",device="{{ $val.GPUDevice }}"
{{- range $k, $v := $val.Attributes -}}
,{{ $k }}="{{ $v }}"
Expand Down

0 comments on commit d5c9bb5

Please sign in to comment.