Skip to content

Commit 1633271

Browse files
committed
viewer#2921 - whitespace fix
1 parent 46a324c commit 1633271

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

indra/llcommon/llstatsaccumulator.h

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ class LLStatsAccumulator
8585
inline F32 getStdDev() const
8686
{
8787
const F64 mean = getMean();
88-
if (mCount < 2)
89-
{
90-
return 0.f;
91-
}
92-
else
93-
{
94-
F32 variance = F32 (mSumOfSquares / mCount - (mean * mean));
95-
return sqrt(llmax(0.f, variance));
96-
}
88+
if (mCount < 2)
89+
{
90+
return 0.f;
91+
}
92+
else
93+
{
94+
F32 variance = F32 (mSumOfSquares / mCount - (mean * mean));
95+
return sqrt(llmax(0.f, variance));
96+
}
9797
}
9898

9999
inline U32 getCount() const
@@ -113,9 +113,9 @@ class LLStatsAccumulator
113113
inline LLSD asLLSD() const
114114
{
115115
LLSD data;
116-
data["count"] = (S32) getCount();
117-
data["sum"] = getSum();
118-
data["sum_of_squares"] = getSumOfSquares();
116+
data["count"] = (S32) getCount();
117+
data["sum"] = getSum();
118+
data["sum_of_squares"] = getSumOfSquares();
119119
data["mean"] = getMean();
120120
data["std_dev"] = getStdDev();
121121
data["min"] = getMinValue();
@@ -135,24 +135,24 @@ class LLStatsAccumulator
135135
// Assumes the samples are frame times
136136
inline F32 fps(LLStatsAccumulator& accum)
137137
{
138-
F32 mean = accum.getMean();
139-
if (mean > 0.f)
140-
{
141-
return 1.0f/mean;
142-
}
143-
return 0.0f;
138+
F32 mean = accum.getMean();
139+
if (mean > 0.f)
140+
{
141+
return 1.0f/mean;
142+
}
143+
return 0.0f;
144144
}
145145

146146
// Assumes the samples are frame times
147147
// ofr = observed frame rate, which has frame times weighted by length, since long frames count more toward user experience.
148148
inline F32 ofr(LLStatsAccumulator& accum)
149149
{
150-
F32 sum = accum.getSum();
151-
F32 sum_of_squares = accum.getSumOfSquares();
152-
if (sum_of_squares > 0.0f)
153-
{
154-
return sum/sum_of_squares;
155-
}
150+
F32 sum = accum.getSum();
151+
F32 sum_of_squares = accum.getSumOfSquares();
152+
if (sum_of_squares > 0.0f)
153+
{
154+
return sum/sum_of_squares;
155+
}
156156
return 0.0f;
157157
}
158158

0 commit comments

Comments
 (0)