Skip to content

Commit

Permalink
v1.2.1 reduce wait time when no metrics are in the queue
Browse files Browse the repository at this point in the history
  • Loading branch information
nixargh committed Feb 28, 2021
1 parent 2f5704f commit ab76069
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.2.1]
### Fxied
- Wait time when no metrics are in the queue from **10** to **5** milliseconds.

## [1.2.0]
### Changed
- The size of a pack from **1000** to **10000**. Default packs limit adjusted as well.
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
// "github.com/pkg/profile"
)

var version string = "1.2.0"
var version string = "1.2.1"

var clog, slog, rlog, tlog, stlog *log.Entry
var hostname string
Expand Down Expand Up @@ -203,7 +203,7 @@ func runSender(host string, port int, outputChan chan *Metric, TLS bool, ignoreC
metrics[i] = metric
default:
metrics[i] = emptyMetric
time.Sleep(10 * time.Millisecond)
time.Sleep(5 * time.Millisecond)
}
}

Expand Down

0 comments on commit ab76069

Please sign in to comment.