1
mirror of https://github.com/rclone/rclone synced 2024-12-23 14:23:44 +01:00

union: fix eplus policy to select correct entry for existing files #6071

This commit is contained in:
Nick Craig-Wood 2022-04-04 09:51:56 +01:00
parent 1e1af46a12
commit 29e37749b3

View File

@ -42,7 +42,7 @@ func (p *EpLus) lusEntries(entries []upstream.Entry) (upstream.Entry, error) {
var minUsedSpace int64 = math.MaxInt64
var lusEntry upstream.Entry
for _, e := range entries {
space, err := e.UpstreamFs().GetFreeSpace()
space, err := e.UpstreamFs().GetUsedSpace()
if err != nil {
fs.LogPrintf(fs.LogLevelNotice, nil,
"Used Space is not supported for upstream %s, treating as 0", e.UpstreamFs().Name())