From 733c5db67db98809245161bece9bf5c29c55bf61 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 --- xpfe/components/history/src/nsGlobalHistory.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xpfe/components/history/src/nsGlobalHistory.cpp b/xpfe/components/history/src/nsGlobalHistory.cpp index 32ba91b6fcc..c82d1f7388a 100644 --- a/xpfe/components/history/src/nsGlobalHistory.cpp +++ b/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);