X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=date.c;h=f011692c2f9f06e2356c2256ff8f1b496a1af2d5;hb=cfe370c6476392095bc3f18013d195b1cccd6184;hp=409a17d46424083b62f21e7e278393cee7bfa080;hpb=3ed24211d48d9a297b3784347acbf7e0265a58f3;p=git.git diff --git a/date.c b/date.c index 409a17d46..f011692c2 100644 --- a/date.c +++ b/date.c @@ -135,7 +135,7 @@ const char *show_date(unsigned long time, int tz, enum date_mode mode) } /* Give years and months for 5 years or so */ if (diff < 1825) { - unsigned long years = (diff + 183) / 365; + unsigned long years = diff / 365; unsigned long months = (diff % 365 + 15) / 30; int n; n = snprintf(timebuf, sizeof(timebuf), "%lu year%s",