mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Remove legacy upTime() function
This commit is contained in:
@@ -8,8 +8,6 @@
|
||||
|
||||
#include "utils.h"
|
||||
|
||||
extern int upTime();
|
||||
|
||||
// Monitors load levels and response times
|
||||
|
||||
class LoadMonitor
|
||||
@@ -27,9 +25,16 @@ protected:
|
||||
void update();
|
||||
|
||||
public:
|
||||
LoadMonitor() : mCounts(0), mLatencyEvents(0), mLatencyMSAvg(0), mLatencyMSPeak(0),
|
||||
mTargetLatencyAvg(0), mTargetLatencyPk(0)
|
||||
{ mLastUpdate = upTime(); }
|
||||
LoadMonitor()
|
||||
: mCounts(0)
|
||||
, mLatencyEvents(0)
|
||||
, mLatencyMSAvg(0)
|
||||
, mLatencyMSPeak(0)
|
||||
, mTargetLatencyAvg(0)
|
||||
, mTargetLatencyPk(0)
|
||||
{
|
||||
mLastUpdate = UptimeTimer::getInstance().getElapsedSeconds ();
|
||||
}
|
||||
|
||||
void addCount();
|
||||
void addLatency(int latency);
|
||||
|
||||
Reference in New Issue
Block a user