Outpul log fix

This commit is contained in:
akostin 2018-04-09 13:22:00 +03:00
parent 443f2dea99
commit 3f6cf03f22

4
b2q.go
View File

@ -322,7 +322,7 @@ func main() {
fmt.Println("Press Enter to start")
fmt.Scanln()
fmt.Println("Started")
totaljobs := len(resumefile) -2
totaljobs := len(resumefile) - 2
numjob := 1
comChannel := make(chan string, totaljobs)
for key, value := range resumefile {
@ -333,7 +333,7 @@ func main() {
for message := range comChannel {
fmt.Printf("%v/%v %v \n", numjob, totaljobs, message)
numjob++
if numjob == totaljobs {
if numjob - 1 == totaljobs {
break
}
}