From cfbb6dfd4a31d5572dee6bc8761613bf801b01fc Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Thu, 8 Mar 2001 06:16:02 +0000 Subject: [PATCH] oops, better attempt git-svn-id: svn://10.0.0.236/trunk@88937 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/components/history/src/nsGlobalHistory.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/xpfe/components/history/src/nsGlobalHistory.cpp b/mozilla/xpfe/components/history/src/nsGlobalHistory.cpp index 32ba91b6fcc..c82d1f7388a 100644 --- a/mozilla/xpfe/components/history/src/nsGlobalHistory.cpp +++ b/mozilla/xpfe/components/history/src/nsGlobalHistory.cpp @@ -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);