Fixed bug with LLStat median calculation. Clean up llstatbar a bit.

This commit is contained in:
Shyotl
2019-07-25 23:43:04 -05:00
parent 6dc9210a7e
commit 2dbbec88f7
2 changed files with 6 additions and 14 deletions

View File

@@ -152,7 +152,7 @@ F32 LLStat::getMax() const
F32 LLStat::getMean() const
{
F32 current_mean = getCurrent();
F32 current_mean = 0.f; // Don't double-count current.
S32 samples = 0;
for (S32 i = 0; i < (S32)mNumValues; i++)
{
@@ -170,10 +170,6 @@ F32 LLStat::getMean() const
{
current_mean /= samples;
}
else
{
current_mean = 0.f;
}
return current_mean;
}