mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
fix formatting for memcg threshold
This commit is contained in:
parent
c36e66dd66
commit
b294173f5d
@ -19,6 +19,7 @@ package eviction
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"sort"
|
"sort"
|
||||||
|
"strconv"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -211,7 +212,7 @@ func (m *managerImpl) startMemoryThresholdNotifier(summary *statsapi.Summary, ha
|
|||||||
memcgThreshold.Sub(*evictionThresholdQuantity)
|
memcgThreshold.Sub(*evictionThresholdQuantity)
|
||||||
memcgThreshold.Add(*inactiveFile)
|
memcgThreshold.Add(*inactiveFile)
|
||||||
description := fmt.Sprintf("<%s available", formatThresholdValue(threshold.Value))
|
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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user