mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Use the new uptime code. Replace slow, non-monotonic 'time(NULL)' calls
with fast, almost-always-monotonic 'upTime()' calls.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
void LoadMonitor::update()
|
||||
{ // call with the mutex
|
||||
time_t now = time(NULL);
|
||||
int now = upTime();
|
||||
|
||||
if (now == mLastUpdate) // current
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user