Reputation: 5
import dropbox (9.4.0)
dbx = dropbox.Dropbox("xxx")
print(dbx.users_get_space_usage().used)
outputs 606873703 or 592.65 MB but the dropbox client shows 578.76 MB. This is from the webpage and the windows 10 client.
Am is using the wrong function?
Upvotes: 0
Views: 119
Reputation: 16930
It looks like this is due to using different factors when converting between bytes and "MB" . For reference, see the different definitions of Megabyte vs. Mebibyte.
If you want to match Dropbox's formatting, use the "Mebibyte" convention instead.
Upvotes: 1