Commit efebd2b4 authored by David Ashpole's avatar David Ashpole

fix formatting for memcg threshold

parent 3e06c24d
...@@ -19,6 +19,7 @@ package eviction ...@@ -19,6 +19,7 @@ package eviction
import ( import (
"fmt" "fmt"
"sort" "sort"
"strconv"
"sync" "sync"
"time" "time"
...@@ -207,7 +208,7 @@ func startMemoryThresholdNotifier(thresholds []evictionapi.Threshold, observatio ...@@ -207,7 +208,7 @@ func startMemoryThresholdNotifier(thresholds []evictionapi.Threshold, observatio
usageThreshold := resource.NewQuantity(observed.capacity.Value(), resource.DecimalSI) usageThreshold := resource.NewQuantity(observed.capacity.Value(), resource.DecimalSI)
usageThreshold.Sub(*quantity) usageThreshold.Sub(*quantity)
description := fmt.Sprintf("<%s available", formatThresholdValue(threshold.Value)) description := fmt.Sprintf("<%s available", formatThresholdValue(threshold.Value))
memcgThresholdNotifier, err := NewMemCGThresholdNotifier(cgpath, attribute, usageThreshold.String(), description, handler) memcgThresholdNotifier, err := NewMemCGThresholdNotifier(cgpath, attribute, strconv.FormatInt(usageThreshold.Value(), 10), description, handler)
if err != nil { if err != nil {
return err return err
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment