From d1df77171a587686fdd7aa6c58e136e7d5b5ca1c Mon Sep 17 00:00:00 2001 From: Florent Clairambault Date: Sun, 5 Dec 2021 23:23:47 +0100 Subject: [PATCH] tiny fixes: Path separator + typos (#853) When we are on a *NIX system, the path is incorrect and we can't copy-paste it. Added some tiny typo fixes. --- backtester/report/report.go | 2 +- engine/engine.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backtester/report/report.go b/backtester/report/report.go index 536b43cf..3be4ab40 100644 --- a/backtester/report/report.go +++ b/backtester/report/report.go @@ -79,7 +79,7 @@ func (d *Data) GenerateReport() error { if err != nil { return err } - log.Infof(log.BackTester, "successfully saved report to %v\\%v", d.OutputPath, fileName) + log.Infof(log.BackTester, "successfully saved report to %v", filepath.Join(d.OutputPath, fileName)) return nil } diff --git a/engine/engine.go b/engine/engine.go index 3090ba3a..9a341274 100644 --- a/engine/engine.go +++ b/engine/engine.go @@ -250,7 +250,7 @@ func PrintSettings(s *Settings) { gctlog.Debugf(gctlog.Global, "\t Enable dry run mode: %v", s.EnableDryRun) gctlog.Debugf(gctlog.Global, "\t Enable all exchanges: %v", s.EnableAllExchanges) gctlog.Debugf(gctlog.Global, "\t Enable all pairs: %v", s.EnableAllPairs) - gctlog.Debugf(gctlog.Global, "\t Enable coinmarketcap analaysis: %v", s.EnableCoinmarketcapAnalysis) + gctlog.Debugf(gctlog.Global, "\t Enable coinmarketcap analysis: %v", s.EnableCoinmarketcapAnalysis) gctlog.Debugf(gctlog.Global, "\t Enable portfolio manager: %v", s.EnablePortfolioManager) gctlog.Debugf(gctlog.Global, "\t Enable data history manager: %v", s.EnableDataHistoryManager) gctlog.Debugf(gctlog.Global, "\t Enable currency state manager: %v", s.EnableCurrencyStateManager) @@ -280,7 +280,7 @@ func PrintSettings(s *Settings) { gctlog.Debugf(gctlog.Global, "\t Exchange REST sync timeout: %v\n", s.SyncTimeoutREST) gctlog.Debugf(gctlog.Global, "\t Exchange Websocket sync timeout: %v\n", s.SyncTimeoutWebsocket) gctlog.Debugf(gctlog.Global, "- FOREX SETTINGS:") - gctlog.Debugf(gctlog.Global, "\t Enable currency conveter: %v", s.EnableCurrencyConverter) + gctlog.Debugf(gctlog.Global, "\t Enable currency converter: %v", s.EnableCurrencyConverter) gctlog.Debugf(gctlog.Global, "\t Enable currency layer: %v", s.EnableCurrencyLayer) gctlog.Debugf(gctlog.Global, "\t Enable fixer: %v", s.EnableFixer) gctlog.Debugf(gctlog.Global, "\t Enable OpenExchangeRates: %v", s.EnableOpenExchangeRates)