mirror of
https://github.com/rclone/rclone.git
synced 2025-01-05 05:49:33 +01:00
mailru: fix int32 overflow on arm32
This commit is contained in:
parent
dc7e3ea1e3
commit
03eab4233e
@ -58,7 +58,7 @@ type UserInfoResponse struct {
|
|||||||
AutoProlong bool `json:"auto_prolong"`
|
AutoProlong bool `json:"auto_prolong"`
|
||||||
Basequota int64 `json:"basequota"`
|
Basequota int64 `json:"basequota"`
|
||||||
Enabled bool `json:"enabled"`
|
Enabled bool `json:"enabled"`
|
||||||
Expires int `json:"expires"`
|
Expires int64 `json:"expires"`
|
||||||
Prolong bool `json:"prolong"`
|
Prolong bool `json:"prolong"`
|
||||||
Promocodes struct {
|
Promocodes struct {
|
||||||
} `json:"promocodes"`
|
} `json:"promocodes"`
|
||||||
@ -80,7 +80,7 @@ type UserInfoResponse struct {
|
|||||||
FileSizeLimit int64 `json:"file_size_limit"`
|
FileSizeLimit int64 `json:"file_size_limit"`
|
||||||
Space struct {
|
Space struct {
|
||||||
BytesTotal int64 `json:"bytes_total"`
|
BytesTotal int64 `json:"bytes_total"`
|
||||||
BytesUsed int `json:"bytes_used"`
|
BytesUsed int64 `json:"bytes_used"`
|
||||||
Overquota bool `json:"overquota"`
|
Overquota bool `json:"overquota"`
|
||||||
} `json:"space"`
|
} `json:"space"`
|
||||||
} `json:"cloud"`
|
} `json:"cloud"`
|
||||||
|
@ -1572,7 +1572,7 @@ func (f *Fs) About(ctx context.Context) (*fs.Usage, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
total := info.Body.Cloud.Space.BytesTotal
|
total := info.Body.Cloud.Space.BytesTotal
|
||||||
used := int64(info.Body.Cloud.Space.BytesUsed)
|
used := info.Body.Cloud.Space.BytesUsed
|
||||||
|
|
||||||
usage := &fs.Usage{
|
usage := &fs.Usage{
|
||||||
Total: fs.NewUsageValue(total),
|
Total: fs.NewUsageValue(total),
|
||||||
|
Loading…
Reference in New Issue
Block a user