From 7c06afaabdcfb7982cd1c39d2fc0f23f56f51202 Mon Sep 17 00:00:00 2001 From: Petter Rasmussen Date: Sun, 22 Mar 2015 12:33:13 +0100 Subject: Set default chunk size to 4 MiB See prasmussen/google-api-go-client@01eb774 --- README.md | 2 +- drive.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fa597fc..ad13e60 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ If you want to compile from source you need the go toolchain: http://golang.org/ --share Share uploaded file --mimetype The MIME type (default will try to figure it out) --convert File will be converted to Google Docs format - -C, --chunksize Set chunk size in bytes. Minimum is 262144, default is 1048576. Recommended to be a power of two. + -C, --chunksize Set chunk size in bytes. Minimum is 262144, default is 4194304. Recommended to be a power of two. url: -i, --id File Id (*) -p, --preview Generate preview url (default) diff --git a/drive.go b/drive.go index 2115f41..db7c2f5 100644 --- a/drive.go +++ b/drive.go @@ -48,7 +48,7 @@ type Options struct { Share bool `goptions:"--share, description='Share uploaded file'"` MimeType string `goptions:"--mimetype, description='The MIME type (default will try to figure it out)'"` Convert bool `goptions:"--convert, description='File will be converted to Google Docs format'"` - ChunkSize int64 `goptions:"-C, --chunksize, description='Set chunk size in bytes. Minimum is 262144, default is 1048576. Recommended to be a power of two.'"` + ChunkSize int64 `goptions:"-C, --chunksize, description='Set chunk size in bytes. Minimum is 262144, default is 4194304. Recommended to be a power of two.'"` } `goptions:"upload"` Download struct { -- cgit v1.2.3