From 7eeaddc56354cf9dcd0a1ef24a744d14a72b5c47 Mon Sep 17 00:00:00 2001 From: Hyeongju Johannes Lee Date: Mon, 28 Mar 2022 04:52:09 -0700 Subject: [PATCH] gpu: fix typo in implmentation of preferredAllocator interface Signed-off-by: Hyeongju Johannes Lee --- cmd/gpu_plugin/gpu_plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/gpu_plugin/gpu_plugin.go b/cmd/gpu_plugin/gpu_plugin.go index c078480e..9485d015 100644 --- a/cmd/gpu_plugin/gpu_plugin.go +++ b/cmd/gpu_plugin/gpu_plugin.go @@ -208,7 +208,7 @@ func (dp *devicePlugin) GetPreferredAllocation(rqt *pluginapi.PreferredAllocatio if req.AllocationSize > int32(len(req.AvailableDeviceIDs)) { klog.V(3).Info("req.AllocationSize must be not greater than len(req.AvailableDeviceIDs).") - var err = errors.Errorf("AllocationSize (%d) is greater then the number of available device IDs (%d)", req.AllocationSize, len(req.AvailableDeviceIDs)) + var err = errors.Errorf("AllocationSize (%d) is greater than the number of available device IDs (%d)", req.AllocationSize, len(req.AvailableDeviceIDs)) return nil, err }