diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2012-04-05 14:25:21 -0400 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2012-04-05 14:25:21 -0400 |
commit | 7d739fbe5b5f53fdc9dc5bfc1358906cca44fc05 (patch) | |
tree | b144f3a282ac370aca5dd4f376bff5c53c31fce3 /indra/newview/llviewerstats.h | |
parent | 67353ef0c24f62c5e2356ccc1aaa55fb556379f5 (diff) |
SH-3064 WIP - accumulate stats tied to phase timers
Diffstat (limited to 'indra/newview/llviewerstats.h')
-rwxr-xr-x[-rw-r--r--] | indra/newview/llviewerstats.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llviewerstats.h b/indra/newview/llviewerstats.h index f91a1241fe..718fabc75a 100644..100755 --- a/indra/newview/llviewerstats.h +++ b/indra/newview/llviewerstats.h @@ -244,7 +244,7 @@ public: inline F32 getStdDev() const { const F32 mean = getMean(); - return (mCount == 0) ? 0.f : sqrt( mSumOfSquares/mCount - (mean * mean) ); + return (mCount < 2) ? 0.f : sqrt(llmax(0.f,mSumOfSquares/mCount - (mean * mean))); } inline U32 getCount() const |