This function contains two bugs: First, the age of a snapshot is
only shown in months if it is older than four months rather than
two. Second, the number of months is calculated incorrectly.
{
if (diff > 2 * 86400 * 365)
sprintf(buf, "%3" PRId64 " years ", diff / (86400 * 365));
- else if (diff > 2 * 86400 * 60)
- sprintf(buf, "%3" PRId64 " months ", diff / (86400 * 60));
+ else if (diff > 2 * 86400 * 30)
+ sprintf(buf, "%3" PRId64 " months ", diff / (86400 * 30));
else if (diff > 2 * 86400 * 7)
sprintf(buf, "%3" PRId64 " weeks ", diff / (86400 * 7));
else if (diff > 2 * 86400)