From 41b6aaa39539df2710b39ebb674ae87ccfd82328 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Sun, 19 Jan 2014 04:31:41 +0100 Subject: [PATCH] FIRE-3925: Paket loss in "About" floater will show 1 after reaching 1,000,000 --- indra/newview/llfloaterabout.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/indra/newview/llfloaterabout.cpp b/indra/newview/llfloaterabout.cpp index 634ab12b98..0082aa7c50 100755 --- a/indra/newview/llfloaterabout.cpp +++ b/indra/newview/llfloaterabout.cpp @@ -354,7 +354,11 @@ LLSD LLFloaterAbout::getInfo() if (gPacketsIn > 0) { info["PACKETS_LOST"] = LLViewerStats::getInstance()->mPacketsLostStat.getCurrent(); - info["PACKETS_IN"] = F32(gPacketsIn); + // FIRE-3925: Formatting fails when reaching 1,000,000; + // Use S32 since it will be used in LLStringUtil::formatNumber anyway. + //info["PACKETS_IN"] = F32(gPacketsIn); + info["PACKETS_IN"] = S32(gPacketsIn); + // info["PACKETS_PCT"] = 100.f*info["PACKETS_LOST"].asReal() / info["PACKETS_IN"].asReal(); }