Skip to content

Commit

Permalink
fix rename the variable everywhere
Browse files Browse the repository at this point in the history
Signed-off-by: Juraj Michalek <[email protected]>
  • Loading branch information
jmichalek132 committed Sep 27, 2024
1 parent 8df2ecd commit ab115e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (c *Client) write(ctx context.Context) error {

// Download the pprofs during half of the iteration to get avarege readings.
// Do that only when it is not set to take profiles at a given interval.
if len(c.config.PprofURLs) > 0 && c.config.RequestCount != -1 && ii == c.config.RequestCount/2 {
if len(c.config.PprofURLs) > 0 && c.config.RequestCount != -1 && left == c.config.RequestCount/2 {
wgPprof.Add(1)
go func() {
download.URLs(c.config.PprofURLs, time.Now().Format("2-Jan-2006-15:04:05"))
Expand Down

0 comments on commit ab115e0

Please sign in to comment.