ok
This commit is contained in:
parent
a84acd14ca
commit
15c0b5b157
4 changed files with 15 additions and 9 deletions
|
@ -29,9 +29,9 @@ func producer(id int) {
|
|||
// se non ci sono piu' userid esce
|
||||
if err != nil {
|
||||
if opts.Debug {
|
||||
log.Printf("LLINDEX empty: %v\n\r", err)
|
||||
fmt.Printf("LLINDEX empty: %v\n\r", err)
|
||||
}
|
||||
log.Printf("LLINDEX empty: %v\n\r", err)
|
||||
//loop[id] = false
|
||||
done[id] <- true
|
||||
break
|
||||
|
@ -40,7 +40,9 @@ func producer(id int) {
|
|||
// estrae tutti i login dell'utente "user"
|
||||
logs, err := redis.Strings(conn.Do("lrange", user, "0", "-1"))
|
||||
if err != nil {
|
||||
fmt.Printf("LRANGE: %+v - %+v\n\r", err, logs)
|
||||
if opts.Debug {
|
||||
fmt.Printf("LRANGE: %+v - %+v\n\r", err, logs)
|
||||
}
|
||||
log.Printf("LRANGE: %+v - %+v\n\r", err, logs)
|
||||
}
|
||||
// if opts.Debug {
|
||||
|
@ -50,7 +52,7 @@ func producer(id int) {
|
|||
|
||||
if opts.Debug {
|
||||
fmt.Printf("PROD (%d): user=%s login=%d in %v - conn=%d\n\r", id, user, len(logs), time.Since(start), dbs.rdb.ActiveCount())
|
||||
log.Printf("PROD (%d): user=%s login=%d in %v - conn=%d\n\r", id, user, len(logs), time.Since(start), dbs.rdb.ActiveCount())
|
||||
// log.Printf("PROD (%d): user=%s login=%d in %v - conn=%d\n\r", id, user, len(logs), time.Since(start), dbs.rdb.ActiveCount())
|
||||
}
|
||||
|
||||
count.AddUser()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue