mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 01:31:17 +00:00
Review comments
This commit is contained in:
@@ -31,8 +31,8 @@ type backgroundReader struct {
|
||||
// proc.
|
||||
func newBackgroundReader(walker process.Walker) *backgroundReader {
|
||||
br := &backgroundReader{
|
||||
latestBuf: bytes.NewBuffer(make([]byte, 0, 5000)),
|
||||
stopc: make(chan struct{}),
|
||||
stopc: make(chan struct{}),
|
||||
latestSockets: map[uint64]*Proc{},
|
||||
}
|
||||
go br.loop(walker)
|
||||
return br
|
||||
@@ -137,8 +137,5 @@ func scheduleNextWalk(rateLimitPeriod time.Duration, took time.Duration) (newRat
|
||||
}
|
||||
log.Debugf("background /proc reader: new rate limit period %s", newRateLimitPeriod)
|
||||
|
||||
// when to start next walk
|
||||
restInterval = targetWalkTime - took
|
||||
|
||||
return
|
||||
return newRateLimitPeriod, targetWalkTime - took
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user