NR_THERMAL_RECORDS
if (next_thermal_record >= NR_THERMAL_RECORDS)
struct thermal_data_record trec[NR_THERMAL_RECORDS];