Fix certwatch time calculations for expiring certificates (#473860)
This commit is contained in:
parent
09cf24e3cc
commit
6e19286166
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user