summaryrefslogtreecommitdiff
path: root/esp32-cam/CameraWebServer
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-09-16 23:07:00 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-09-16 23:07:00 +0300
commitaeb5080bfe694eb7943e8871b2ba1d99caff0044 (patch)
treeca3b8b5aeae7af6e39374be4317409045d4bc4a7 /esp32-cam/CameraWebServer
parent52544fdacd0d7dc24424c2aacaebe1c5df5577d8 (diff)
hm
Diffstat (limited to 'esp32-cam/CameraWebServer')
-rw-r--r--esp32-cam/CameraWebServer/app_httpd.cpp2
1 files changed, 1 insertions, 1 deletions
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));