mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-28 23:09:46 -05:00
fix unrestricted quota
This commit is contained in:
@@ -640,16 +640,15 @@ func (g Graph) getDriveQuota(ctx context.Context, space *storageprovider.Storage
|
||||
}
|
||||
|
||||
used := int64(res.UsedBytes)
|
||||
total := int64(res.TotalBytes)
|
||||
qta := libregraph.Quota{
|
||||
Remaining: &remaining,
|
||||
Used: &used,
|
||||
Total: &total,
|
||||
}
|
||||
|
||||
var t int64
|
||||
if total := int64(res.TotalBytes); total != 0 {
|
||||
|
||||
// A quota was set
|
||||
qta.Total = &total
|
||||
if total != 0 {
|
||||
t = total
|
||||
} else {
|
||||
// Quota was not set
|
||||
|
||||
Reference in New Issue
Block a user