1
0
Fork 0
This commit is contained in:
Matt Goodall 2013-04-22 10:17:33 +01:00
parent 001fb31173
commit 40fc5bc2ad
1 changed files with 5 additions and 5 deletions

View File

@ -85,10 +85,10 @@ func consumer(args []string) {
total := time.Tick(time.Second * 5)
for {
select {
case <- throughput:
log.Printf("throughput: %d msgs/s\n", count - throughputCount)
case <-throughput:
log.Printf("throughput: %d msgs/s\n", count-throughputCount)
throughputCount = count
case <- total:
case <-total:
log.Printf("total: %d\n", count)
}
}
@ -96,7 +96,7 @@ func consumer(args []string) {
for stanza := range x.In {
if _, ok := stanza.(*xmpp.Message); ok {
count ++
count++
}
}
}