cmd: Fix go routines at exit message to make it less confusing

This commit is contained in:
Nick Craig-Wood 2018-03-09 17:15:48 +00:00
parent acae10cd6f
commit 09c14af6d1

View File

@ -319,7 +319,7 @@ func Run(Retry bool, showStats bool, cmd *cobra.Command, f func() error) {
if showStats && (accounting.Stats.Errored() || *statsInterval > 0) {
accounting.Stats.Log()
}
fs.Debugf(nil, "Go routines at exit %d\n", runtime.NumGoroutine())
fs.Debugf(nil, "%d go routines active\n", runtime.NumGoroutine())
if accounting.Stats.Errored() {
resolveExitCode(accounting.Stats.GetLastError())
}