Commit e0f377e6 authored by ci's avatar ci
Browse files

fix directory lookup

parent eb162488
...@@ -243,9 +243,9 @@ func (s *SyncManager) GetS3AWSConfig() aws.Config { ...@@ -243,9 +243,9 @@ func (s *SyncManager) GetS3AWSConfig() aws.Config {
} }
} }
func (s *SyncManager) checkUsedSpace() error { func (s *SyncManager) checkUsedSpace() error {
usedPctile, err := GetUsedSpace(s.blobsDir) usedPctile, err := GetUsedSpace(logUtils.GetBlobsDir())
if err != nil { if err != nil {
return err return errors.Err(err)
} }
if usedPctile >= 0.90 && !s.skipSpaceCheck { if usedPctile >= 0.90 && !s.skipSpaceCheck {
return errors.Err(fmt.Sprintf("more than 90%% of the space has been used. use --skip-space-check to ignore. Used: %.1f%%", usedPctile*100)) return errors.Err(fmt.Sprintf("more than 90%% of the space has been used. use --skip-space-check to ignore. Used: %.1f%%", usedPctile*100))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment