Reworked a bit the server load code

Signed-off-by: emanuele <emanuele45@gmail.com>
Merge pull request #1182 from emanuele45/load_average

Reworked a bit the server load code