[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#169147: tag 169147 + patch



tag 169147 + patch
thanks

I am the king of trivial, untested patches.

--- cgi-bin/search_contents.pl.~1.2.~	Thu Jan 30 06:50:53 2003
+++ cgi-bin/search_contents.pl	Tue Mar 25 16:16:39 2003
@@ -136,11 +136,9 @@
    }
 }
 
-my $numpages = floor($number / $results_per_page);
+my $numpages = ceil($number / $results_per_page);
 my $index_line = "";
 
-# this line has some bugs... search for sshd, it's on the second page, but
-# the `2' isn't displayed
 for (my $i = 1; $i <= $numpages; $i++) {
 	$index_line .= "<a href=\"$thisscript?page=$i&word=$keyword".
                     "&version=$version&arch=$arch&case=$case".

Matt
-- 
It's most certainly GNU/Linux, not Linux.  Read more at
http://www.gnu.org/gnu/why-gnu-linux.html.



Reply to: