Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions fracmanager/fraction_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,12 @@ func (r *fractionRegistry) AllFractions() []frac.Fraction {
// Stats returns current size statistics of the registry.
func (r *fractionRegistry) Stats() registryStats {
r.mu.RLock()
defer r.mu.RUnlock()
s := r.stats
i := r.active.instance.Info()
r.mu.RUnlock()

r.stats.active.Set(r.active.instance.Info())
return r.stats
s.active.Set(i)
return s
}

// OldestTotal returns the creation time of the oldest fraction in the registry.
Expand Down
Loading