From 910cb29a7f83e75db615b17eb34b21babab96dc9 Mon Sep 17 00:00:00 2001 From: Shyotl Date: Wed, 25 Jan 2012 20:11:07 -0600 Subject: [PATCH] Truncating fasttimer times to integers in the hovertext is not very useful.. --- indra/llcommon/llfasttimer_class.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indra/llcommon/llfasttimer_class.cpp b/indra/llcommon/llfasttimer_class.cpp index 20f64d1a1..2d1297344 100644 --- a/indra/llcommon/llfasttimer_class.cpp +++ b/indra/llcommon/llfasttimer_class.cpp @@ -307,11 +307,11 @@ std::string LLFastTimer::NamedTimer::getToolTip(S32 history_idx) if (history_idx < 0) { // by default, show average number of call - return llformat("%s (%d ms, %d calls)", getName().c_str(), (S32)(getCountAverage() * ms_multiplier), (S32)getCallAverage()); + return llformat("%s (%.2f ms, %d calls)", getName().c_str(), (F32)((F32)getCountAverage() * ms_multiplier), (S32)getCallAverage()); } else { - return llformat("%s (%d ms, %d calls)", getName().c_str(), (S32)(getHistoricalCount(history_idx) * ms_multiplier), (S32)getHistoricalCalls(history_idx)); + return llformat("%s (%.2f ms, %d calls)", getName().c_str(), (F32)((F32)getHistoricalCount(history_idx) * ms_multiplier), (S32)getHistoricalCalls(history_idx)); } }