diff options
author | Richard Linden <none@none> | 2013-03-25 00:18:06 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2013-03-25 00:18:06 -0700 |
commit | 935dce7d6b0a343cef5b13f53d6da5d0c2dc6a73 (patch) | |
tree | 1517fc3ea00f29a5c64050cb4fc756dec30caf63 /indra/newview/llworld.cpp | |
parent | 68f9f656cd22332e46959a90347e38f79c19a66c (diff) |
SH-3931 WIP Interesting: Add graphs to visualize scene load metrics
fixed some compile errors
made label spacing automatic on stat bars
fixed infinite values coming from stats
Diffstat (limited to 'indra/newview/llworld.cpp')
-rw-r--r-- | indra/newview/llworld.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llworld.cpp b/indra/newview/llworld.cpp index 12eea513da..9401773886 100644 --- a/indra/newview/llworld.cpp +++ b/indra/newview/llworld.cpp @@ -728,7 +728,8 @@ void LLWorld::updateNetStats() add(LLStatViewer::PACKETS_LOST, packets_lost); if (packets_in) { - sample(LLStatViewer::PACKETS_LOST_PERCENT, 100.f * ((F32)packets_lost/(F32)packets_in)); + F32 packet_loss = 100.f * ((F32)packets_lost/(F32)packets_in); + sample(LLStatViewer::PACKETS_LOST_PERCENT, packet_loss); } mLastPacketsIn = gMessageSystem->mPacketsIn; |