Avoid divide by zero for when the total duration of SQL is zero
@@ -98,6 +98,7 @@ def __call__(self, request):
f'{len(iommi_sql_debug_log)} queries, {total_duration:.3} seconds total<br><br>',
]
+ if total_duration:
color = '#4f4fff'
for i, x in enumerate(iommi_sql_debug_log):
proportion = x["duration"] / total_duration * 100
