mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-15 06:28:14 +08:00
修复已运行天数错误
This commit is contained in:
@@ -203,7 +203,7 @@ static int HttpGetPowerInfo(httpd_request_t *req)
|
|||||||
mico_time_t past_ms = 0;
|
mico_time_t past_ms = 0;
|
||||||
mico_time_get_time(&past_ms);
|
mico_time_get_time(&past_ms);
|
||||||
int past = past_ms / 1000;
|
int past = past_ms / 1000;
|
||||||
int d = past / (3600 * 60);
|
int d = past / 3600 / 24;
|
||||||
int h = past / 3600 % 24;
|
int h = past / 3600 % 24;
|
||||||
int m = past / 60 % 60;
|
int m = past / 60 % 60;
|
||||||
int s = past % 60;
|
int s = past % 60;
|
||||||
|
|||||||
Reference in New Issue
Block a user