Fix ACD file size warning limit

The previous value of 50 GiB was too high, we need to use 50,000 MiB.

For detailed discusssion see issue #215.
This commit is contained in:
Felix Bünemann 2016-11-01 23:44:44 +01:00 committed by Nick Craig-Wood
parent d1759fdfa9
commit 1c912de9cc

View file

@ -42,7 +42,7 @@ const (
statusAvailable = "AVAILABLE"
timeFormat = time.RFC3339 // 2014-03-07T22:31:12.173Z
minSleep = 20 * time.Millisecond
warnFileSize = 50 << 30 // Display warning for files larger than this size
warnFileSize = 50000 << 20 // Display warning for files larger than this size
)
// Globals
@ -564,7 +564,7 @@ func (f *Fs) Put(in io.Reader, src fs.ObjectInfo) (fs.Object, error) {
return nil, err
}
if size > warnFileSize {
fs.Debug(f, "Warning: file %q may fail because it is too big. Use --max-size=%dGB to skip large files.", remote, warnFileSize>>30)
fs.Debug(f, "Warning: file %q may fail because it is too big. Use --max-size=%dM to skip large files.", remote, warnFileSize>>20)
}
folder := acd.FolderFromId(directoryID, o.fs.c.Nodes)
var info *acd.File