From ba8554dc23f51fa9cff78b4ab797ad45c2530eb2 Mon Sep 17 00:00:00 2001 From: docktofuture Date: Mon, 26 Feb 2024 13:10:21 +0100 Subject: [PATCH] fix format in printing --- pkg/controllers/nodeipam/ipam/ipv6_allocator.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/controllers/nodeipam/ipam/ipv6_allocator.go b/pkg/controllers/nodeipam/ipam/ipv6_allocator.go index f5e43ec893..24fefc07e7 100644 --- a/pkg/controllers/nodeipam/ipam/ipv6_allocator.go +++ b/pkg/controllers/nodeipam/ipam/ipv6_allocator.go @@ -168,7 +168,7 @@ func (ra6 *IPv6RangeAllocator) process() bool { timeTaken := time.Since(workItem.enqueueTime).Seconds() recordWorkItemLatencyMetrics(workItemDequeuingTimeWorkItemMetric, timeTaken) - klog.Infof("Dequeuing latency %s", timeTaken) + klog.Infof("Dequeuing latency %f", timeTaken) instanceID, err := awsv1.KubernetesInstanceID(workItem.node.Spec.ProviderID).MapToAWSInstanceID() if err != nil { @@ -202,7 +202,7 @@ func (ra6 *IPv6RangeAllocator) process() bool { klog.Infof("Finished processing %s", workItem) timeTaken = time.Since(workItem.enqueueTime).Seconds() recordWorkItemLatencyMetrics(workItemProcessingTimeWorkItemMetric, timeTaken) - klog.Infof("Processing latency %s", timeTaken) + klog.Infof("Processing latency %f", timeTaken) } ra6.workqueue.Forget(obj)