From d81ad6bb36528c4990f06f0498fbc490b7755535 Mon Sep 17 00:00:00 2001 From: siddharth Date: Mon, 29 Nov 2021 17:38:38 -0500 Subject: fern: update main Display number of feeds yet to be processed. --- fern.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'fern.go') diff --git a/fern.go b/fern.go index 4908483..5f766fd 100644 --- a/fern.go +++ b/fern.go @@ -47,6 +47,12 @@ func main() { } // Wait for all feeds finish processing. for pState.FeedsProcessing > 0 { + fTxt := "feeds" + if pState.FeedsProcessing == 1 { + fTxt = "feed" + } + fmt.Printf("Waiting for %d %s to finish processing\n", + pState.FeedsProcessing, fTxt) fr := <-pState.FeedResultChan if fr.Err == nil { fmt.Printf("[%s]: %s\n", -- cgit v1.2.3