Skip to content

Commit

Permalink
Merge pull request #175 from SkynetLabs/ivo/limit_only_speed_on_quota…
Browse files Browse the repository at this point in the history
…_exceeded

When a user exceeds their quota limit only their speed
  • Loading branch information
ro-tex authored Mar 31, 2022
2 parents a673b7b + b791ca0 commit ef66d4f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions api/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -1353,15 +1353,15 @@ func userLimitsGetFromTier(tierID int, quotaExceeded, inBytes bool) *UserLimitsG
bpsMul = 1
}
return &UserLimitsGET{
TierID: tierID,
TierName: t.TierName,
Storage: t.Storage,
TierID: tierID,
TierName: t.TierName,
Storage: t.Storage,
MaxUploadSize: t.MaxUploadSize,
MaxNumberUploads: t.MaxNumberUploads,
// If the user exceeds their quota, there will be brought down to
// anonymous levels.
UploadBandwidth: limitsTier.UploadBandwidth * bpsMul,
DownloadBandwidth: limitsTier.DownloadBandwidth * bpsMul,
MaxUploadSize: limitsTier.MaxUploadSize,
MaxNumberUploads: limitsTier.MaxNumberUploads,
RegistryDelay: limitsTier.RegistryDelay,
}
}
Expand Down

0 comments on commit ef66d4f

Please sign in to comment.