fix unsigned long to long int in get cpu and memory