From 07b4c6d751a48bced22d72ad0e1d2c966d9a86b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Kripalani?= Date: Wed, 20 Jan 2021 10:41:55 +0000 Subject: [PATCH] fix sed replace that overreached. --- adaptive_test.go | 2 +- watermarks.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/adaptive_test.go b/adaptive_test.go index bdacc83..7d0124e 100644 --- a/adaptive_test.go +++ b/adaptive_test.go @@ -22,7 +22,7 @@ func TestAdaptivePolicy(t *testing.T) { next = p.Evaluate(UtilizationSystem, limit64MiB/2) require.EqualValues(t, 3*(limit64MiB/4), next) - // at limit64MiB. + // at limit. next = p.Evaluate(UtilizationSystem, limit64MiB) require.EqualValues(t, limit64MiB, next) } diff --git a/watermarks.go b/watermarks.go index ff21bb8..cced767 100644 --- a/watermarks.go +++ b/watermarks.go @@ -29,7 +29,7 @@ type watermarkPolicy struct { var _ Policy = (*watermarkPolicy)(nil) func (w *watermarkPolicy) Evaluate(_ UtilizationType, used uint64) (next uint64) { - Logger.Debugf("watermark policy: evaluating; utilization: %d/%d (used/limit64MiB)", used, w.limit) + Logger.Debugf("watermark policy: evaluating; utilization: %d/%d (used/limit)", used, w.limit) var i int for ; i < len(w.thresholds); i++ { t := w.thresholds[i]