зеркало из https://github.com/mozilla/pjs.git
oops, better attempt
This commit is contained in:
Родитель
14602f0c05
Коммит
733c5db67d
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче