]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2003-05-21 20:28:07 by cjwatson]
authorcjwatson <>
Thu, 22 May 2003 03:28:07 +0000 (19:28 -0800)
committercjwatson <>
Thu, 22 May 2003 03:28:07 +0000 (19:28 -0800)
Don't be quite so wilfully inaccurate while calculating the year component
of a bug's age. (It still doesn't handle leap years, though.)

cgi/common.pl

index 09bc85798aad1ac8219331f709ed6815233dfb76..4f51ca0218ef4cbf3f8c8a900c19e381de8722d2 100644 (file)
@@ -206,8 +206,8 @@ sub htmlindexentrystatus {
             $efont = "</$font>" if ($font);
             $font = "<$font>" if ($font);
 
-            my $yearsold = int($daysold / 364);
-            $daysold = $daysold - $yearsold * 364;
+            my $yearsold = int($daysold / 365);
+            $daysold -= $yearsold * 365;
 
             $result .= ";\n $font";
             my @age;