intelli_plug : nr_running -> avg_nr_running and added some functions