@@ -1,3 +1,7 @@
+pisg (x.xx)
+ * Fix problem where NFiles didn't work when the specified values was more
+ than the actual number of logfiles (thanks, Christoph Berg)
+
pisg (0.56) - Sat Jun, 19th 2004
* Fix parsing of energymech kick messages and modes (thanks, optika81)
* Add colorscheme with traditional pisg (website) colors. Thanks, mite.
@@ -231,7 +231,7 @@ sub _parse_dir
if($self->{cfg}->{nfiles} > 0) {
my $shift = @filesarray - $self->{cfg}->{nfiles};
- splice(@filesarray, 0, $shift);
+ splice(@filesarray, 0, $shift) if $shift > 0;
}
foreach my $file (@filesarray) {