1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00
This commit is contained in:
Poloskin Valentin Georgievich
2017-04-02 17:10:47 +03:00
parent c86c158b1f
commit 80673992e6
4 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ func wrapRedisProcess(client *redis.Client) {
var count, avgDur uint32
go func() {
for _ = range time.Tick(3 * time.Second) {
for range time.Tick(3 * time.Second) {
n := atomic.LoadUint32(&count)
dur := time.Duration(atomic.LoadUint32(&avgDur)) * precision
fmt.Printf("%s: processed=%d avg_dur=%s\n", client, n, dur)