Fix certwatch time calculations for expiring certificates (#473860)

This commit is contained in:
Elio Maldonado 2009-01-29 22:15:33 +00:00
parent 09cf24e3cc
commit 6e19286166
1 changed files with 1 additions and 0 deletions

View File

@ -152,6 +152,7 @@ char *pr_ctime(PRTime time, char *buf, int size)
/* Computes the day difference among two PRTime's */
static int diff_time_days(PRTime aT, PRTime bT)
{
/* Dividing before substracting to support the desired granularity */
PRInt64 secs = (aT/PR_USEC_PER_SEC - bT/PR_USEC_PER_SEC);
return secs / 86400L;
}