diff --git a/cointop/common/filecache/filecache.go b/cointop/common/filecache/filecache.go index 0a02d77..fdad1e9 100644 --- a/cointop/common/filecache/filecache.go +++ b/cointop/common/filecache/filecache.go @@ -16,7 +16,7 @@ import ( ) // DefaultCacheDir ... -var DefaultCacheDir = "/tmp1" +var DefaultCacheDir = "/tmp" // FileCache ... type FileCache struct { diff --git a/cointop/config.go b/cointop/config.go index b235b88..8f0b82e 100644 --- a/cointop/config.go +++ b/cointop/config.go @@ -335,7 +335,7 @@ func (ct *Cointop) loadRefreshRateFromConfig() error { func (ct *Cointop) loadCacheDirFromConfig() error { ct.debuglog("loadCacheDirFromConfig()") if cacheDir, ok := ct.config.CacheDir.(string); ok { - ct.State.cacheDir = cacheDir + ct.State.cacheDir = pathutil.NormalizePath(cacheDir) } return nil