System error

error:  Illegal division by zero at /www/del.icio.us/site/popular/index line 68.
context: 
... 
64:  if ($style == 3) { $score = ($recent * $recent) / $total; }
65:  if ($style == 4) { $score = (($recent / $total) > 0.07 ) * ($recent * $recent) / $total; }
66:  if ($style == 5) { $score = ($recent) / (1 + $total - $recent); }
67:  if ($style == 6) { $score = $recent; }
68: 
69:  my $pct = $d->{popular_count} / ($d->{num} - $d->{popular_count} + 1);
70:  if ($new eq 'NOPE') {
71:  push @$dout, $d if ($score > 0 and $pct > .1);
72:  } else {
... 
code stack:  /www/del.icio.us/site/popular/index:68
/www/del.icio.us/site/autohandler:80
raw error






























Illegal division by zero at /www/del.icio.us/site/popular/index line 68.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 131
HTML::Mason::Exceptions::rethrow_exception('Illegal division by zero at /www/del.icio.us/site/popular/index line 68.^J') called at /www/del.icio.us/site/popular/index line 68
HTML::Mason::Commands::__ANON__('dbh', 'DBI::db=HASH(0x19d4f10)', 'auth_user', undef, 'items', 100, 'tagview', 'list', 'tagsort', 'alpha', 'bundleview', 'show', 'cookies', 'HASH(0x2a9a3ca030)') called at /usr/share/perl5/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x1f5f000)', 'dbh', 'DBI::db=HASH(0x19d4f10)', 'auth_user', undef, 'items', 100, 'tagview', 'list', 'tagsort', 'alpha', 'bundleview', 'show', 'cookies', 'HASH(0x2a9a3ca030)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1074
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, 'dbh', 'DBI::db=HASH(0x19d4f10)', 'auth_user', undef, 'items', 100, 'tagview', 'list', 'tagsort', 'alpha', 'bundleview', 'show', 'cookies', 'HASH(0x2a9a3ca030)') called at /usr/share/perl5/HTML/Mason/Request.pm line 760
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x2476640)', 'dbh', 'DBI::db=HASH(0x19d4f10)', 'auth_user', undef, 'items', 100, 'tagview', 'list', 'tagsort', 'alpha', 'bundleview', 'show', 'cookies', 'HASH(0x2a9a3ca030)') called at /www/del.icio.us/site/autohandler line 80
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x19ad100)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1069
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/share/perl5/HTML/Mason/Request.pm line 338
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 338
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 297
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x2476640)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 134
eval {...} at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 134
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x2476640)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 793
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x195c290)', 'Apache=SCALAR(0x2a9a3f08d0)') called at (eval 41) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache=SCALAR(0x2a9a3f08d0)') called at /dev/null line 0
eval {...} at /dev/null line 0