From 7c4e58cd56551ab54a3b05f0a4aea782d7e8664c Mon Sep 17 00:00:00 2001 From: YuYang Date: Sat, 25 May 2024 09:20:27 +0800 Subject: [PATCH] better diff message --- gpu/node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpu/node.go b/gpu/node.go index 06ae328..82cb260 100644 --- a/gpu/node.go +++ b/gpu/node.go @@ -324,7 +324,7 @@ func (p Plugin) getNodeResourceInfo(ctx context.Context, nodename string, worklo continue } if count1 != count2 { - diffs = append(diffs, fmt.Sprintf("%s: %.2d != %.2d", prod, count1, count2)) + diffs = append(diffs, fmt.Sprintf("%s: actual(%d) != usage(%d)", prod, count1, count2)) } }