Skip to content

Commit

Permalink
汉化
Browse files Browse the repository at this point in the history
  • Loading branch information
zogodo committed Jul 1, 2020
1 parent ca5d2b7 commit ca7fbd8
Show file tree
Hide file tree
Showing 6 changed files with 2,305 additions and 710 deletions.
5 changes: 3 additions & 2 deletions TC1/http_server/app_httpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,11 @@ 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 h = past / 3600;
int d = past / 3600 * 60;
int h = past / 3600 % 24;
int m = past / 60 % 60;
int s = past % 60;
sprintf(up_time, "%d:%02d:%02d", h, m, s);
sprintf(up_time, "%d - %02d:%02d:%02d", d, h, m, s);

char* powers = GetPowerRecord(idx);
char* sockets = GetSocketStatus();
Expand Down
132 changes: 66 additions & 66 deletions TC1/http_server/web/index.html

Large diffs are not rendered by default.

936 changes: 936 additions & 0 deletions TC1/http_server/web/index_en.html

Large diffs are not rendered by default.

Loading

0 comments on commit ca7fbd8

Please sign in to comment.