oops, better attempt
git-svn-id: svn://10.0.0.236/trunk@88937 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
e0f845965d
commit
cfbb6dfd4a
@ -1414,10 +1414,12 @@ nsGlobalHistory::GetTarget(nsIRDFResource* aSource,
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
PRInt64 age;
|
||||
PRInt64 now = GetNow();
|
||||
LL_SUB(age, now, lastVisitDate);
|
||||
LL_SUB(age, GetNow(), lastVisitDate);
|
||||
|
||||
// now need to convert msec -> days
|
||||
PRInt64 msecsPerDay;
|
||||
LL_I2L(msecsPerDay, MSECS_PER_DAY);
|
||||
|
||||
PRInt64 ageInDays;
|
||||
LL_DIV(ageInDays, age, MSECS_PER_DAY);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user