MAINT-4157 FIXED Lag meter tool tips are missing units

master
Mnikolenko ProductEngine 2014-06-19 12:07:14 +03:00
parent d760a6889d
commit 24ebc86b41
2 changed files with 3 additions and 1 deletions

View File

@ -44,9 +44,10 @@ LLStatGraph::LLStatGraph(const Params& p)
: LLView(p),
mMin(p.min),
mMax(p.max),
mPerSec(true),
mPerSec(p.per_sec),
mPrecision(p.precision),
mValue(p.value),
mUnits(p.units),
mNewStatFloatp(p.stat.count_stat_float)
{
setToolTip(p.name());

View File

@ -200,6 +200,7 @@ BOOL LLStatusBar::postBuild()
sgp.stat.count_stat_float(&LLStatViewer::ACTIVE_MESSAGE_DATA_RECEIVED);
sgp.units("Kbps");
sgp.precision(0);
sgp.per_sec(true);
mSGBandwidth = LLUICtrlFactory::create<LLStatGraph>(sgp);
addChild(mSGBandwidth);
x -= SIM_STAT_WIDTH + 2;