mirror of
https://github.com/rclone/rclone.git
synced 2025-01-20 01:52:47 +08:00
union: fix eplus policy to select correct entry for existing files #6071
This commit is contained in:
parent
1e1af46a12
commit
29e37749b3
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue
Block a user