From 205e4913d035e4ac8be46319179cebc054de0d0d Mon Sep 17 00:00:00 2001 From: zogodo <742782908@qq.com> Date: Sat, 18 Dec 2021 11:23:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B7=B2=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E5=A4=A9=E6=95=B0=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TC1/http_server/app_httpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TC1/http_server/app_httpd.c b/TC1/http_server/app_httpd.c index 94875a2..c4162e3 100644 --- a/TC1/http_server/app_httpd.c +++ b/TC1/http_server/app_httpd.c @@ -203,7 +203,7 @@ static int HttpGetPowerInfo(httpd_request_t *req) mico_time_t past_ms = 0; mico_time_get_time(&past_ms); int past = past_ms / 1000; - int d = past / (3600 * 60); + int d = past / 3600 / 24; int h = past / 3600 % 24; int m = past / 60 % 60; int s = past % 60;