diff options
| author | Petter Rasmussen | 2016-02-13 17:18:53 +0100 | 
|---|---|---|
| committer | Petter Rasmussen | 2016-02-13 17:18:53 +0100 | 
| commit | fc24aa48336d794998bf3e45356fb34721162b8a (patch) | |
| tree | 46bb7ec93fe828f2e88a5243bed1469ab03ee9a3 | |
| parent | f9d75405d586b3b4e196ad5b9f749b3c99faf55c (diff) | |
| download | gdrive-fc24aa48336d794998bf3e45356fb34721162b8a.tar.bz2 | |
Correct used space / free space
| -rw-r--r-- | drive/about.go | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/drive/about.go b/drive/about.go index 01d7073..4c23ab8 100644 --- a/drive/about.go +++ b/drive/about.go @@ -21,8 +21,8 @@ func (self *Drive) About(args AboutArgs) (err error) {      quota := about.StorageQuota      fmt.Fprintf(args.Out, "User: %s, %s\n", user.DisplayName, user.EmailAddress) -    fmt.Fprintf(args.Out, "Used: %s\n", formatSize(quota.UsageInDrive, args.SizeInBytes)) -    fmt.Fprintf(args.Out, "Free: %s\n", formatSize(quota.Limit - quota.UsageInDrive, args.SizeInBytes)) +    fmt.Fprintf(args.Out, "Used: %s\n", formatSize(quota.Usage, args.SizeInBytes)) +    fmt.Fprintf(args.Out, "Free: %s\n", formatSize(quota.Limit - quota.Usage, args.SizeInBytes))      fmt.Fprintf(args.Out, "Total: %s\n", formatSize(quota.Limit, args.SizeInBytes))      fmt.Fprintf(args.Out, "Max upload size: %s\n", formatSize(about.MaxUploadSize, args.SizeInBytes))      return | 
