From: octo Date: Wed, 13 Apr 2005 16:45:33 +0000 (+0000) Subject: Fixed major bug in Onis::Data::Core.. X-Git-Tag: Release-0.8.0~20^2~5 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=7ad9384aae58fc8506e62441065d3bfbaa88804f;p=onis.git Fixed major bug in Onis::Data::Core.. --- diff --git a/lib/Onis/Plugins/Core.pm b/lib/Onis/Plugins/Core.pm index e644cd4..ec6dc79 100644 --- a/lib/Onis/Plugins/Core.pm +++ b/lib/Onis/Plugins/Core.pm @@ -468,7 +468,7 @@ sub calculate $NickData->{$main}{'lines'}[$i] += $counter[$i]; $sum += $counter[$i]; } - $NickData->{$main}{'lines_total'} = $sum; + $NickData->{$main}{'lines_total'} += $sum; } @counter = $NickWordsCounter->get ($nick); @@ -480,7 +480,7 @@ sub calculate $NickData->{$main}{'words'}[$i] += $counter[$i]; $sum += $counter[$i]; } - $NickData->{$main}{'words_total'} = $sum; + $NickData->{$main}{'words_total'} += $sum; } @counter = $NickCharsCounter->get ($nick); @@ -492,7 +492,7 @@ sub calculate $NickData->{$main}{'chars'}[$i] += $counter[$i]; $sum += $counter[$i]; } - $NickData->{$main}{'chars_total'} = $sum; + $NickData->{$main}{'chars_total'} += $sum; } if (!defined ($QuoteData->{$main})) @@ -978,7 +978,7 @@ sub bar $retval .= qq#$sum); } return ($retval);