refine the cpu stat, use fgets and sscanf.
refine system stat, use fgets and sscanf.