Skip to content

Commit

Permalink
30s avgs
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCutter committed Aug 1, 2024
1 parent d57ee2d commit eac66b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hammer/hammer.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func NewHammer(tracker *client.LogStateTracker, f client.Fetcher, w LeafWriter)
tracker: tracker,
errChan: errChan,
leafSampleChan: leafSampleChan,
integrationTime: movingaverage.New(10),
integrationTime: movingaverage.New(30),
}
}

Expand Down Expand Up @@ -326,7 +326,7 @@ func hostUI(ctx context.Context, hammer *Hammer) {
ticker := time.NewTicker(interval)
go func() {
lastSize := hammer.tracker.LatestConsistent.Size
maSlots := 10
maSlots := int((30 * time.Second) / interval)
growth := movingaverage.New(maSlots)
for {
select {
Expand Down

0 comments on commit eac66b3

Please sign in to comment.