Fixed bug in 'gam report users ... aggregatebydate|aggregatebyuser`

This commit is contained in:
Ross Scroggs
2025-11-15 09:11:07 -08:00
parent 4bf9741748
commit dccc0443de

View File

@@ -14000,7 +14000,7 @@ def doReport():
return (True, lastDate)
def _computeUsedQuotaInPercentage(events):
if ('accounts:total_quota_in_mb' in events) and ('accounts:used_quota_in_mb' in events):
if ('accounts:total_quota_in_mb' in events) and (events['accounts:total_quota_in_mb'] > 0) and ('accounts:used_quota_in_mb' in events):
events['accounts:used_quota_in_percentage'] = int(events['accounts:used_quota_in_mb']/events['accounts:total_quota_in_mb']*100)
else:
events['accounts:used_quota_in_percentage'] = 0