]> git.donarmstrong.com Git - infobot.git/commitdiff
divide by zero fix. thought I fixed it 2 weeks ago
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Thu, 8 Feb 2001 15:51:19 +0000 (15:51 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Thu, 8 Feb 2001 15:51:19 +0000 (15:51 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@365 c11ca15a-4712-0410-83d8-924469b57eb5

src/IRC/Schedulers.pl

index e6ae976991b99f3d32d36aeaf59ef215bf3ad1b6..a25714ca90e22419f862c20540cbc84f4d3c9fcb 100644 (file)
@@ -456,7 +456,7 @@ sub seenFlush {
 
     &status("Flushed $flushed seen entries.")          if ($flushed);
     &VERB(sprintf("  new seen: %03.01f%% (%d/%d)",
-       $stats{'new'}*100/$stats{'count_old'},
+       $stats{'new'}*100/($stats{'count_old'} || 1),
        $stats{'new'}, $stats{'count_old'} ), 2)        if ($stats{'new'});
     &VERB(sprintf("  now seen: %3.1f%% (%d/%d)",
        $stats{'old'}*100/&countKeys("seen"),