Closed jadethaveekij closed 1 year ago
Seems to be a case where if there are 0 accepted emails, it literally is trying to divide by zero. It'll get addressed in the next update. I'll leave this open until it's addressed.
yes, this is some old, legacy domains which we need to only keep a few mails for delivery -- and it was marked as a subdomains so it's mostly ... spamtraped domains T__T" sorry for the troubles. so, we get around by changing from 1w to 1m timeframe which gives ample more good result. :D
Can you give the version in the dev branch a try and see if this solves your issue? It should be a straightforward upgrade from 1-fc.
Confirmed that the reported issue is now fixed. THANK YOU. ==/|\==
Below two screenshots are based on the same data range -- I had to change the date range much shorter (1d) to view/find the issue.
before:
after:
Exactly what I like to hear. Thanks!
At certain times (certain weeks), it seemed that there is this error. Not sure if this is related to the data part?
Warning: Division by zero in /var/web/mrtg/dmarc/Open-DMARC-Analyzer/includes/template.php on line 280 Warning: Division by zero in /var/web/mrtg/dmarc/Open-DMARC-Analyzer/includes/template.php on line 281 Warning: Division by zero in /var/web/mrtg/dmarc/Open-DMARC-Analyzer/includes/template.php on line 282 Warning: Division by zero in /var/web/mrtg/dmarc/Open-DMARC-Analyzer/includes/template.php on line 283 Warning: Division by zero in /var/web/mrtg/dmarc/Open-DMARC-Analyzer/includes/template.php on line 284
Somewhere along this
// stat calculations $dmarc_comp_pct = number_format(100 ($dmarc_comp / $dmarc_none)); $dkim_comp_pct = number_format(100 ($dkim_pass_aligned / $dmarc_none)); $dkim_pass_pct = number_format(100 (($dkim_pass_aligned + $dkim_pass_noalign) / $dmarc_none)); $spf_comp_pct = number_format(100 ($spf_pass_aligned / $dmarc_none)); $spf_pass_pct = number_format(100 * (($spf_pass_aligned + $spf_pass_noalign) / $dmarc_none));
Screenshots If applicable, add screenshots to help explain your problem.
Software Version 1-fc upgraded from 0-α7.1