fix a bug in the sampling when cpufre is not available