We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15f2765 commit a0fcfa3Copy full SHA for a0fcfa3
drivers/aliyundrive_open/driver.go
@@ -299,10 +299,7 @@ func (d *AliyundriveOpen) GetDetails(ctx context.Context) (*model.StorageDetails
299
total := utils.Json.Get(res, "personal_space_info", "total_size").ToUint64()
300
used := utils.Json.Get(res, "personal_space_info", "used_size").ToUint64()
301
return &model.StorageDetails{
302
- DiskUsage: model.DiskUsage{
303
- TotalSpace: total,
304
- FreeSpace: total - used,
305
- },
+ DiskUsage: driver.DiskUsageFromUsedAndTotal(used, total),
306
}, nil
307
}
308
0 commit comments