我们使用googledriveapi的About.Get方法返回一个Abount resource。在
在谷歌驱动器统计显示如下。在
但如果我们是使用谷歌驱动器的资源的反应将得到如下。在
{
"quotaBytesTotal": "16106127360",
"quotaBytesUsed": "17108627",
"quotaBytesUsedAggregate": "136771970",
"quotaBytesUsedInTrash": "0",
"quotaBytesByService": [
{
"serviceName": "DRIVE",
"bytesUsed": "22255358"
},
{
"serviceName": "GMAIL",
"bytesUsed": "119663343"
},
{
"serviceName": "PHOTOS",
"bytesUsed": "0"
}
}
驱动器API的about resource的引用链接。在
http://www.whatsabyte.com/P1/byteconverter.htm
22255358=21.22兆字节
119663343=114.11986 Mb
问题在哪里?在
1Mb=2^10 kb 1kb=2^10 b(字节)
编辑: 你说得对,他们应该/可能已经使用了Mib
https://en.wikipedia.org/wiki/Kilobyte
相关问题 更多 >
编程相关推荐