diff --git a/main.go b/main.go index 8f90f9e..244e308 100644 --- a/main.go +++ b/main.go @@ -104,6 +104,10 @@ func main() { fmt.Printf("Stop %v - user: %d - login: %d - errors: %d - rem: %d - duplicate: %d\n\r", count.GetTime(), count.GetUser(), count.GetLog(), count.GetErr(), count.GetRem(), count.GetDup()) log.Printf("Stop %v - user: %d - login: %d - errors: %d - rem: %d - duplicate: %d\n\r", count.GetTime(), count.GetUser(), count.GetLog(), count.GetErr(), count.GetRem(), count.GetDup()) + if opts.Debug { + fmt.Printf("Time: \n\tConsumer: max: %.5f - min: %.5f - med: %.5f\n\tRemover: max: %.5f - min: %.5f - med: %.5f\n\tProducer: %.5f\n", count.GetMaxConsumer(), count.GetMinConsumer(), count.GetConsumerTime(), count.GetMaxRemover(), count.GetMinRemover(), count.GetRemoverTime(), count.GetProducerTime()) + } + if opts.Influxdb != "" { writeStats(start) }