From b294173f5d86ca2172237e871f9a6efbd538b4c5 Mon Sep 17 00:00:00 2001 From: David Ashpole Date: Thu, 19 Apr 2018 14:48:41 -0700 Subject: [PATCH] fix formatting for memcg threshold --- pkg/kubelet/eviction/eviction_manager.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/kubelet/eviction/eviction_manager.go b/pkg/kubelet/eviction/eviction_manager.go index f580e2951b6dc..bda2693fe1c09 100644 --- a/pkg/kubelet/eviction/eviction_manager.go +++ b/pkg/kubelet/eviction/eviction_manager.go @@ -19,6 +19,7 @@ package eviction import ( "fmt" "sort" + "strconv" "sync" "time" @@ -211,7 +212,7 @@ func (m *managerImpl) startMemoryThresholdNotifier(summary *statsapi.Summary, ha memcgThreshold.Sub(*evictionThresholdQuantity) memcgThreshold.Add(*inactiveFile) description := fmt.Sprintf("<%s available", formatThresholdValue(threshold.Value)) - memcgThresholdNotifier, err := NewMemCGThresholdNotifier(cgpath, attribute, memcgThreshold.String(), description, handler) + memcgThresholdNotifier, err := NewMemCGThresholdNotifier(cgpath, attribute, strconv.FormatInt(memcgThreshold.Value(), 10), description, handler) if err != nil { return err }