Skip to content

Commit dcbb1f2

Browse files
alingsedims
authored andcommitted
fix: fix call Errorf with wrong err
1 parent f6e42d8 commit dcbb1f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manager/container.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ func (cd *containerData) updateStats() error {
724724
return statsErr
725725
}
726726
if perfStatsErr != nil {
727-
klog.Errorf("error occurred while collecting perf stats for container %s: %s", cInfo.Name, err)
727+
klog.Errorf("error occurred while collecting perf stats for container %s: %s", cInfo.Name, perfStatsErr)
728728
return perfStatsErr
729729
}
730730
if resctrlStatsErr != nil {

0 commit comments

Comments
 (0)