protondrive: fix a bug in parsing User metadata (#7174)

This commit is contained in:
Chun-Hung Tseng 2023-07-28 11:03:23 +02:00 committed by GitHub
parent 4c5a21703e
commit 602e42d334
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 5 deletions

View file

@ -737,8 +737,8 @@ func (f *Fs) About(ctx context.Context) (*fs.Usage, error) {
return nil, err
}
total := int64(user.MaxSpace)
used := int64(user.UsedSpace)
total := user.MaxSpace
used := user.UsedSpace
free := total - used
usage := &fs.Usage{