Save CPU when idle.

This needs a bit more testing. It may also with the general problem of
high CPU usage with low traffic.
This commit is contained in:
Robin Sommer 2012-02-12 13:04:47 -08:00
parent b8ec653ebf
commit 7fcb7b5f17

View file

@ -454,6 +454,7 @@ void net_run()
// date on timers and events.
network_time = ct;
expire_timers();
usleep(1); // Just yield.
}
}