From ba6040f16a50c2665969964d420dfed35064d20a Mon Sep 17 00:00:00 2001 From: aixiao Date: Wed, 21 Sep 2022 16:12:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=99=AE=E9=80=9A=E6=83=85=E5=86=B5=E4=B8=80?= =?UTF-8?q?=E5=B0=8F=E6=97=B6=E5=8F=91=E9=80=81=E4=B8=80=E6=9D=A1=E9=82=AE?= =?UTF-8?q?=E4=BB=B6=E5=91=8A=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reboot_temperature.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");