Measure: Tweaked Max/Min value logging.

This commit is contained in:
spx
2012-10-03 02:36:11 -07:00
parent 93c1cf0411
commit 940b4ff55e
4 changed files with 36 additions and 39 deletions

View File

@ -450,14 +450,19 @@ void CMeasureNet::ReadOptions(CConfigParser& parser, const WCHAR* section, NET n
Rainmeter->SetNetworkStatisticsTimer();
}
if (maxValue == 0)
if (maxValue == 0.0)
{
m_MaxValue = 1;
m_LogMaxValue = true;
if (!m_LogMaxValue)
{
m_MaxValue = 1.0;
m_LogMaxValue = true;
m_MedianValues.clear();
}
}
else
{
m_MaxValue = maxValue / 8;
m_LogMaxValue = false;
}
}