Skip to content

Commit

Permalink
address
Browse files Browse the repository at this point in the history
Signed-off-by: nolouch <[email protected]>
  • Loading branch information
nolouch committed Mar 20, 2024
1 parent ad4b3c0 commit 0583609
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/mcs/resourcemanager/server/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const (
metricsCleanupTimeout = 20 * time.Minute
metricsAvailableRUInterval = 1 * time.Second
defaultCollectIntervalSec = 20
tickPerSecond = time.Second

reservedDefaultGroupName = "default"
middlePriority = 8
Expand Down Expand Up @@ -359,7 +360,7 @@ func (m *Manager) backgroundMetricsFlush(ctx context.Context) {
defer cleanUpTicker.Stop()
availableRUTicker := time.NewTicker(metricsAvailableRUInterval)
defer availableRUTicker.Stop()
recordMaxTicker := time.NewTicker(time.Second)
recordMaxTicker := time.NewTicker(tickPerSecond)
defer recordMaxTicker.Stop()
maxPerSecTrackers := make(map[string]*maxPerSecCostTracker)
rruSum := make(map[string]float64)
Expand Down

0 comments on commit 0583609

Please sign in to comment.