mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Keep 1's from getting stuck in the load monitor stats.
This commit is contained in:
@@ -20,8 +20,8 @@ void LoadMonitor::LoadMonitor::update()
|
||||
do
|
||||
{ // do exponential decay
|
||||
++mLastUpdate;
|
||||
mCounts -= (mCounts / 4);
|
||||
mLatencyEvents -= (mLatencyEvents / 4);
|
||||
mCounts -= ((mCounts + 3) / 4);
|
||||
mLatencyEvents -= ((mLatencyEvents + 3) / 4);
|
||||
mLatencyMSAvg -= (mLatencyMSAvg / 4);
|
||||
mLatencyMSPeak -= (mLatencyMSPeak / 4);
|
||||
} while (mLastUpdate < now);
|
||||
|
||||
Reference in New Issue
Block a user