System error

error:  Illegal division by zero at /usr/local/idx/apache2/htdocs.savvyocala/annual/all-houses.html line 190.
context: 
... 
186:  my ($min,$max) = split(/\-/, $x);
187:  foreach my $yr (@years) {
188:  my $y = $dbh->selectrow_hashref("select count(*) as tot from oca_sold where County = 'Marion' and PropType in ('res') AND year(ClosedDate) = ? AND SalesPrice > ? AND SalesPrice <= ?", undef, $yr, $min, $max);
189:  $rangetot->{$yr}->{$i} = $y->{tot};
190:  my $pct = ( $y->{tot} / $data->{$yr}->{total} ) * 100;
191:  $range->{$yr}->{$i} = $pct;
192:  }
193:  }
194: 
... 
code stack:  /usr/local/idx/apache2/htdocs.savvyocala/annual/all-houses.html:190
/usr/local/lib/perl5/site_perl/5.28.3/HTML/Mason/Request.pm:848
/usr/local/idx/apache2/htdocs.savvyocala/annual/all-houses.html:160
raw error






























Illegal division by zero at /usr/local/idx/apache2/htdocs.savvyocala/annual/all-houses.html line 190.


Trace begun at /usr/local/lib/perl5/site_perl/5.28.3/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('Illegal division by zero at /usr/local/idx/apache2/htdocs.savvyocala/annual/all-houses.html line 190.^J') called at /usr/local/idx/apache2/htdocs.savvyocala/annual/all-houses.html line 190
HTML::Mason::Commands::__ANON__ at /usr/local/lib/perl5/site_perl/5.28.3/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x8fd0850)') called at /usr/local/lib/perl5/site_perl/5.28.3/HTML/Mason/Request.pm line 920
eval {...} at /usr/local/lib/perl5/site_perl/5.28.3/HTML/Mason/Request.pm line 918
HTML::Mason::Request::call_self('HTML::Mason::Request::ApacheHandler=HASH(0x8fdfb40)', 'SCALAR(0x6d2b820)', 'ARRAY(0x6d2b838)', 'SCALAR(0x6d2b850)', 'CACHE_SELF') called at /usr/local/lib/perl5/site_perl/5.28.3/HTML/Mason/Request.pm line 848
HTML::Mason::Request::cache_self('HTML::Mason::Request::ApacheHandler=HASH(0x8fdfb40)', 'expire_in', '1day', 'key', 'savvyoca') called at /usr/local/idx/apache2/htdocs.savvyocala/annual/all-houses.html line 160
HTML::Mason::Commands::__ANON__ at /usr/local/lib/perl5/site_perl/5.28.3/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x8fd0850)') called at /usr/local/lib/perl5/site_perl/5.28.3/HTML/Mason/Request.pm line 1300
eval {...} at /usr/local/lib/perl5/site_perl/5.28.3/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/local/lib/perl5/site_perl/5.28.3/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/lib/perl5/site_perl/5.28.3/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/lib/perl5/site_perl/5.28.3/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x8fdfb40)') called at /usr/local/lib/perl5/site_perl/5.28.3/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x8fdfb40)') called at /usr/local/lib/perl5/site_perl/5.28.3/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x71894e0)', 'Apache2::RequestRec=SCALAR(0x8538248)') called at (eval 349) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x8538248)') called at -e line 0
eval {...} at -e line 0