From aeb5080bfe694eb7943e8871b2ba1d99caff0044 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Fri, 16 Sep 2022 23:07:00 +0300 Subject: hm --- esp32-cam/CameraWebServer/app_httpd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'esp32-cam/CameraWebServer') diff --git a/esp32-cam/CameraWebServer/app_httpd.cpp b/esp32-cam/CameraWebServer/app_httpd.cpp index b0b456c..e397c70 100644 --- a/esp32-cam/CameraWebServer/app_httpd.cpp +++ b/esp32-cam/CameraWebServer/app_httpd.cpp @@ -1150,7 +1150,7 @@ static esp_err_t win_handler(httpd_req_t *req) static esp_err_t uptime_handler(httpd_req_t *req) { char buf[64]; - sprintf(buf, "{\"millis\":%d}", (int)millis()); + sprintf(buf, "{\"seconds\":%ld}", (long)(millis()/1000)); httpd_resp_set_type(req, "application/json"); httpd_resp_set_hdr(req, "Access-Control-Allow-Origin", "*"); return httpd_resp_send(req, buf, strlen(buf)); -- cgit v1.2.3