made connectivity percentage 5 significant decimal places.
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@454
c11ca15a-4712-0410-83d8-
924469b57eb5
$notcount++;
$notsize += length $txt;
- if ( ($notcount % 4) == 0 and $notcount) {
+ if ( ($notcount % 3) == 0 and $notcount) {
sleep 1;
- } elsif ($notsize > 1500) {
+ } elsif ($notsize > 1000) {
sleep 1;
- $notsize -= 1500;
+ $notsize -= 1000;
}
} else {
my $connectivity = 100 * ($total_time - $ircstats{'OffTime'}) /
$total_time;
- my $p = sprintf("%.02f", $connectivity);
+ my $p = sprintf("%.03f", $connectivity);
$p =~ s/(\.\d*)0+$/$1/;
if ($p =~ s/\.0$//) {
# this should not happen... but why...