From 180a3d0ae2adb7628d085bd0b87196a03fdc9622 Mon Sep 17 00:00:00 2001 From: Jorin Vogel Date: Tue, 10 Oct 2017 22:43:57 +0200 Subject: [PATCH] Fix stats counting 'unchanged' was always 0 and 'updated' had too many counts. --- ghbackup/run.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ghbackup/run.go b/ghbackup/run.go index 570318c..207f7ca 100644 --- a/ghbackup/run.go +++ b/ghbackup/run.go @@ -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 }