diff --git a/reboot_temperature.c b/reboot_temperature.c index 5f469dd..51daef8 100644 --- a/reboot_temperature.c +++ b/reboot_temperature.c @@ -46,7 +46,7 @@ static int error_log(float l_t, int c_t, char *log_file, char *recv_mail, int _i fp = NULL; } else { // 正常温度时 - if (tmp_ptr->tm_min >= 10 && tmp_ptr->tm_min <= 12) { + if (tmp_ptr->tm_min >= 10 && tmp_ptr->tm_min < 12) { sprintf(temperature, "%d.%d.%d %d:%d:%d %s:%.3f℃\n", (1900 + tmp_ptr->tm_year), (1 + tmp_ptr->tm_mon), tmp_ptr->tm_mday, tmp_ptr->tm_hour, tmp_ptr->tm_min, tmp_ptr->tm_sec, "Raspberry CPU temperature", l_t); sprintf(buffer, "email -r %s -s \"Raspberrypi Temperature\" -t \"%s\"", recv_mail, temperature); fp = popen(buffer, "r");