aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetter Rasmussen2016-02-13 17:18:53 +0100
committerPetter Rasmussen2016-02-13 17:18:53 +0100
commitfc24aa48336d794998bf3e45356fb34721162b8a (patch)
tree46bb7ec93fe828f2e88a5243bed1469ab03ee9a3
parentf9d75405d586b3b4e196ad5b9f749b3c99faf55c (diff)
downloadgdrive-fc24aa48336d794998bf3e45356fb34721162b8a.tar.bz2
Correct used space / free space
-rw-r--r--drive/about.go4
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