Don't unnecessarily truncate the memory size (bug 335119) r=marria

This commit is contained in:
bryner%brianryner.com 2006-04-24 02:45:27 +00:00
parent 64667d0f59
commit e60fb67cd7

View File

@ -178,9 +178,9 @@ nsProfileCollector::LogMemory(nsIMetricsEventItem *profile)
return NS_ERROR_FAILURE;
}
PRInt32 sizeMB = size >> 20;
PRUint64 sizeMB = size >> 20;
properties->SetPropertyAsUint64(NS_LITERAL_STRING("mb"), sizeMB);
MS_LOG(("Logged memory mb=%d", sizeMB));
MS_LOG(("Logged memory mb=%ull", sizeMB));
nsresult rv = nsMetricsUtils::AddChildItem(
profile, NS_LITERAL_STRING("memory"), properties);