get loadAverage using a function