I m trying to figure out getting load average of iOS system over time intervals of 1,5 and 15 minutes. I have found the usage example regarding it which is as below :
double la[3];
getloadavg(la, 3);
NSLog(@"Load average : %f - %f - %f", la[0], la[1], la[2]);
What I don't understand here is the significance of 3.Should I pass 1, 5, 15 to getloadavg() function, or this is the correct method? Any help is appreciated.