diff --git a/TC1/http_server/app_httpd.c b/TC1/http_server/app_httpd.c index 71652d2..be4519c 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 * 60); int h = past / 3600 % 24; int m = past / 60 % 60; int s = past % 60; diff --git a/TC1/http_server/web/index.html b/TC1/http_server/web/index.html index 7bbdc8f..b211cd1 100644 --- a/TC1/http_server/web/index.html +++ b/TC1/http_server/web/index.html @@ -38,9 +38,9 @@ @@ -65,19 +65,54 @@
@@ -522,6 +557,16 @@ var icon_menu = "