.
This commit is contained in:
parent
86c835f02b
commit
947b4dec64
3 changed files with 4 additions and 8 deletions
|
@ -37,7 +37,7 @@ func consumer(id int) {
|
|||
user: prod.user,
|
||||
logins: make([]string, 0),
|
||||
error: false,
|
||||
empty: true,
|
||||
empty: false,
|
||||
}
|
||||
|
||||
start := time.Now()
|
||||
|
@ -102,8 +102,8 @@ func consumer(id int) {
|
|||
|
||||
count.AddLog(len(prod.logins))
|
||||
|
||||
if opts.MaxLogins > -1 && len(prod.logins) < opts.MaxLogins {
|
||||
cons.empty = false
|
||||
if opts.MaxLogins == -1 || len(prod.logins) < opts.MaxLogins {
|
||||
cons.empty = true
|
||||
}
|
||||
|
||||
if opts.Debug {
|
||||
|
|
2
main.go
2
main.go
|
@ -11,7 +11,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
_VERSION = "v2.8.1"
|
||||
_VERSION = "v2.8.2"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -47,10 +47,6 @@ func producer(id int) {
|
|||
}
|
||||
log.Printf("LRANGE: %+v - %+v\n", err, logs)
|
||||
}
|
||||
// if opts.Debug {
|
||||
// fmt.Printf("LRANGE: %s - %d\n", user, len(logs))
|
||||
// log.Printf("LRANGE: %s - %d\n", user, len(logs))
|
||||
// }
|
||||
|
||||
if opts.Debug {
|
||||
fmt.Printf("PROD (%d): user=%s login=%d in %v - conn=%d\n", id, user, len(logs), time.Since(start), dbs.rdb.ActiveCount())
|
||||
|
|
Loading…
Add table
Reference in a new issue