From 1c912de9cc058515468bfaa9bbca6b6b4325efd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Bu=CC=88nemann?= Date: Tue, 1 Nov 2016 23:44:44 +0100 Subject: [PATCH] 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. --- amazonclouddrive/amazonclouddrive.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amazonclouddrive/amazonclouddrive.go b/amazonclouddrive/amazonclouddrive.go index 595068c4e..8a1e83fc1 100644 --- a/amazonclouddrive/amazonclouddrive.go +++ b/amazonclouddrive/amazonclouddrive.go @@ -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