Просмотр исходного кода

* alternative and title text in "active times" graphics are now the
number of lines instead of percentage.
* revert some of Christoph Berg changes to output
* release 0.59

Morten Brix Pedersen 22 лет назад
Родитель
Сommit
30375bdeae
4 измененных файлов с 8 добавлено и 5 удалено
  1. 3 1
      docs/Changelog
  2. 1 1
      modules/Pisg.pm
  3. 3 2
      modules/Pisg/HTMLGenerator.pm
  4. 1 1
      modules/Pisg/Parser/Logfile.pm

+ 3 - 1
docs/Changelog

@@ -1,9 +1,11 @@
-pisg (x.xx)
+pisg (0.59) - Sun Oct, 3rd 2004
    Changes by Morten Brix Pedersen:
    * Fix problem with number of rows shown when a nick has been ignored.
    (thanks, Chris Thornhill)
    * Update Windows documentation. Hopefully people will have less problems
    now.
+   * alternative and title text in "active times" graphics are now the
+   number of lines instead of percentage.
    Changes by Christoph Berg:
    * Make BigNumbersThreshold a perl expression; defaults to sqrt($lines).
 

+ 1 - 1
modules/Pisg.pm

@@ -201,7 +201,7 @@ sub get_default_config_settings
         botnicks => '',            # Needed for DCpp format (non-irc)
 
         dailyactivity => 0,
-        version => "0.58",
+        version => "0.59",
     };
 
     # This enables us to use the search_path in other modules

+ 3 - 2
modules/Pisg/HTMLGenerator.pm

@@ -65,7 +65,7 @@ sub create_output
 
     my $fname = $self->{cfg}->{outputfile};
     $fname =~ s/\%t/$self->{cfg}->{outputtag}/g;
-    print "Now generating HTML in $fname with BigNumbersThreshold $self->{cfg}->{bignumbersthreshold}...\n"
+    print "Now generating HTML in $fname...\n"
         unless ($self->{cfg}->{silent});
 
     open (OUTPUT, "> $fname") or
@@ -421,6 +421,7 @@ sub _activetimes
 
         my $size = int(($self->{stats}->{times}{$hour} / $highest_value) * 100);
         my $percent = ($self->{stats}->{times}{$hour} / $self->{stats}->{parsedlines}) * 100;
+        my $lines_per_hour = $self->{stats}->{times}{$hour};
         $percent =~ s/(\.\d)\d+/$1/;
 
         if ($size < 1) {
@@ -432,7 +433,7 @@ sub _activetimes
         $image = "pic_v_".(int($hour/6)*6);
         $image = $self->{cfg}->{$image};
 
-        $output{$hour} = "<td align=\"center\" valign=\"bottom\" class=\"asmall\">$percent%<br /><img src=\"$self->{cfg}->{piclocation}/$image\" width=\"15\" height=\"$size\" alt=\"$percent\" /></td>\n";
+        $output{$hour} = "<td align=\"center\" valign=\"bottom\" class=\"asmall\">$percent%<br /><img src=\"$self->{cfg}->{piclocation}/$image\" width=\"15\" height=\"$size\" alt=\"$lines_per_hour\" title=\"$lines_per_hour\"/></td>\n";
     }
 
     _html("<table border=\"0\"><tr>\n");

+ 1 - 1
modules/Pisg/Parser/Logfile.pm

@@ -522,7 +522,7 @@ sub _parse_file
 
     close(LOGFILE);
 
-    print "Finished analyzing log with $stats->{totallines} lines, total: $stats->{days} days, $stats->{parsedlines} lines.\n"
+    print "Finished analyzing log, $stats->{days} days total\n"
         unless ($self->{cfg}->{silent});
 }