summaryrefslogtreecommitdiffstats
path: root/fern.go
diff options
context:
space:
mode:
authorsiddharth <s@ricketyspace.net>2021-11-29 17:38:38 -0500
committersiddharth <s@ricketyspace.net>2021-11-29 17:38:38 -0500
commitd81ad6bb36528c4990f06f0498fbc490b7755535 (patch)
treecfaff6eb49b7db5ef5f63e8fff5be920d9f062b1 /fern.go
parent4912d28b6cc14be1872105c30963fe5d7447db75 (diff)
fern: update main
Display number of feeds yet to be processed.
Diffstat (limited to 'fern.go')
-rw-r--r--fern.go6
1 files changed, 6 insertions, 0 deletions
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",