修复已运行天数错误

This commit is contained in:
zogodo
2021-12-18 11:23:49 +08:00
parent 492ce82422
commit 205e4913d0

View File

@@ -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;