From 3d9d551f6d40a9ff2e40a3a9871ff2093e417475 Mon Sep 17 00:00:00 2001 From: Miguel Mota Date: Mon, 7 May 2018 00:54:49 -0700 Subject: [PATCH] add currency convert screenshot --- README.md | 2 ++ cointop/{conversions.go => conversion.go} | 0 pkg/api/cmc/cmc.go | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) rename cointop/{conversions.go => conversion.go} (100%) diff --git a/README.md b/README.md index 926d43d..38ca4f0 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,8 @@ The interface is inspired by [`htop`](https://en.wikipedia.org/wiki/Htop) and sh help menu +currency convert menu + In action screencast diff --git a/cointop/conversions.go b/cointop/conversion.go similarity index 100% rename from cointop/conversions.go rename to cointop/conversion.go diff --git a/pkg/api/cmc/cmc.go b/pkg/api/cmc/cmc.go index 333ebb1..aa977de 100644 --- a/pkg/api/cmc/cmc.go +++ b/pkg/api/cmc/cmc.go @@ -55,7 +55,7 @@ func getLimitedCoinData(convert string, offset int) (map[string]apitypes.Coin, e func (s *Service) GetAllCoinData(convert string) (map[string]apitypes.Coin, error) { var wg sync.WaitGroup ret := make(map[string]apitypes.Coin) - for i := 0; i < 10; i++ { + for i := 0; i < 5; i++ { wg.Add(1) go func(j int) { coins, err := getLimitedCoinData(convert, j)