diff --git a/indra/newview/lltexlayer.cpp b/indra/newview/lltexlayer.cpp
index 355f46e29091b08359dd9021d12679bd5a614b5b..f4f8241b99d30c44357640af1df6a354b76664e3 100644
--- a/indra/newview/lltexlayer.cpp
+++ b/indra/newview/lltexlayer.cpp
@@ -536,10 +536,10 @@ void LLTexLayerSetBuffer::doUpload()
 				// Print out notification that we uploaded this texture.
 				if (gSavedSettings.getBOOL("DebugAvatarRezTime"))
 				{
-					std::string lod_str = highest_lod ? "HighRes" : "LowRes";
+					const std::string lod_str = highest_lod ? "HighRes" : "LowRes";
 					LLSD args;
 					args["EXISTENCE"] = llformat("%d",(U32)mTexLayerSet->getAvatar()->debugGetExistenceTimeElapsedF32());
-					args["TIME"] = llformat("%d",(U32)mNeedsUpdateTimer.getElapsedTimeF32());
+					args["TIME"] = llformat("%d",(U32)mNeedsUploadTimer.getElapsedTimeF32());
 					args["BODYREGION"] = mTexLayerSet->getBodyRegionName();
 					args["RESOLUTION"] = lod_str;
 					args["ACTION"] = "uploaded";
@@ -587,10 +587,10 @@ void LLTexLayerSetBuffer::doUpdate()
 	if (gSavedSettings.getBOOL("DebugAvatarRezTime"))
 	{
 		const BOOL highest_lod = mTexLayerSet->isLocalTextureDataFinal();
-		std::string lod_str = highest_lod ? "HighRes" : "LowRes";
+		const std::string lod_str = highest_lod ? "HighRes" : "LowRes";
 		LLSD args;
 		args["EXISTENCE"] = llformat("%d",(U32)mTexLayerSet->getAvatar()->debugGetExistenceTimeElapsedF32());
-		args["TIME"] = llformat("%d",(U32)mNeedsUploadTimer.getElapsedTimeF32());
+		args["TIME"] = llformat("%d",(U32)mNeedsUpdateTimer.getElapsedTimeF32());
 		args["BODYREGION"] = mTexLayerSet->getBodyRegionName();
 		args["RESOLUTION"] = lod_str;
 		args["ACTION"] = "locally updated";