Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Fix stats counting
Browse files Browse the repository at this point in the history
'unchanged' was always 0 and 'updated' had too many counts.
  • Loading branch information
jorinvo committed Oct 10, 2017
1 parent c539bc2 commit 180a3d0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ghbackup/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ func Run(config Config) error {

for i := 0; i < len(repos); i++ {
r := <-results
if r.new {
creations++
} else {
updates++
if r.count > 0 {
if r.new {
creations++
} else {
updates++
}
}
count += r.count
}
Expand Down

0 comments on commit 180a3d0

Please sign in to comment.