From: cjwatson <> Date: Thu, 22 May 2003 03:28:07 +0000 (-0800) Subject: [project @ 2003-05-21 20:28:07 by cjwatson] X-Git-Tag: release/2.6.0~909 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=a5f1d3a7ee93db8aa6de3f56268442d8fc3eaab3;p=debbugs.git [project @ 2003-05-21 20:28:07 by cjwatson] 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.) --- diff --git a/cgi/common.pl b/cgi/common.pl index 09bc8579..4f51ca02 100644 --- a/cgi/common.pl +++ b/cgi/common.pl @@ -206,8 +206,8 @@ sub htmlindexentrystatus { $efont = "" 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;