diff options
| author | Richard Linden <none@none> | 2013-06-19 20:40:13 -0700 | 
|---|---|---|
| committer | Richard Linden <none@none> | 2013-06-19 20:40:13 -0700 | 
| commit | e2e6963677657e4f5c417edc8d60e8b2a37ad204 (patch) | |
| tree | cea4bed1dd643e635f618947693f5f6e41091c6c | |
| parent | 1c51938babfa8c55c61b6b4cda34a7d22c1a427a (diff) | |
| parent | ba9bffd0195e6606daa39760eec75ede954b4040 (diff) | |
Automated merge with https://bitbucket.org/lindenlab/viewer-interesting
| -rwxr-xr-x | indra/newview/llfasttimerview.cpp | 20 | 
1 files changed, 10 insertions, 10 deletions
| diff --git a/indra/newview/llfasttimerview.cpp b/indra/newview/llfasttimerview.cpp index ec307b841e..f956851129 100755 --- a/indra/newview/llfasttimerview.cpp +++ b/indra/newview/llfasttimerview.cpp @@ -99,7 +99,7 @@ LLFastTimerView::LLFastTimerView(const LLSD& key)  :	LLFloater(key),  	mHoverTimer(NULL),  	mDisplayMode(0), -	mDisplayType(TIME), +	mDisplayType(DISPLAY_TIME),  	mScrollIndex(0),  	mHoverID(NULL),  	mHoverBarIndex(-1), @@ -1114,13 +1114,13 @@ void LLFastTimerView::drawLineGraph()  			F32 y;  			switch(mDisplayType)  			{ -			case TIME: +			case DISPLAY_TIME:  				y = mGraphRect.mBottom + time.value() * time_scale_factor;  				break; -			case CALLS: +			case DISPLAY_CALLS:  				y = mGraphRect.mBottom + (F32)calls * call_scale_factor;  				break; -			case HZ: +			case DISPLAY_HZ:  				y = mGraphRect.mBottom + (1.f / time.value()) * hz_scale_factor;  				break;  			} @@ -1178,13 +1178,13 @@ void LLFastTimerView::drawLineGraph()  	std::string axis_label;  	switch(mDisplayType)  	{ -	case TIME: +	case DISPLAY_TIME:  		axis_label = llformat("%4.2f ms", LLUnit<F32, LLUnits::Milliseconds>(max_time).value());  		break; -	case CALLS: +	case DISPLAY_CALLS:  		axis_label = llformat("%d calls", (int)max_calls);  		break; -	case HZ: +	case DISPLAY_HZ:  		axis_label = llformat("%4.2f Hz", max_time.value() ? 1.f / max_time.value() : 0.f);  		break;  	} @@ -1247,13 +1247,13 @@ void LLFastTimerView::drawLegend()  			std::string timer_label;  			switch(mDisplayType)  			{ -			case TIME: +			case DISPLAY_TIME:  				timer_label = llformat("%s [%.1f]",idp->getName().c_str(),ms.value());  				break; -			case CALLS: +			case DISPLAY_CALLS:  				timer_label = llformat("%s (%d)",idp->getName().c_str(),calls);  				break; -			case HZ: +			case DISPLAY_HZ:  				timer_label = llformat("%.1f", ms.value() ? (1.f / ms.value()) : 0.f);  				break;  			} | 
