diff --git a/handlers/handlers.go b/handlers/handlers.go index 66255a0..45798b7 100644 --- a/handlers/handlers.go +++ b/handlers/handlers.go @@ -55,7 +55,7 @@ func (h *Handlers) HandleAPIRequest(w http.ResponseWriter, r *http.Request) { if len(pathSegments) < 2 { monitoring.LogRequest(monitoring.RequestLog{ - Time: time.Now().Unix(), + Time: time.Now().UnixMilli(), Path: r.URL.Path, Method: r.Method, StatusCode: http.StatusNotFound, @@ -76,7 +76,7 @@ func (h *Handlers) HandleAPIRequest(w http.ResponseWriter, r *http.Request) { if !ok { monitoring.LogRequest(monitoring.RequestLog{ - Time: time.Now().Unix(), + Time: time.Now().UnixMilli(), Path: r.URL.Path, Method: r.Method, StatusCode: http.StatusNotFound, @@ -92,7 +92,7 @@ func (h *Handlers) HandleAPIRequest(w http.ResponseWriter, r *http.Request) { if err != nil { log.Printf("Error fetching CSV content: %v", err) monitoring.LogRequest(monitoring.RequestLog{ - Time: time.Now().Unix(), + Time: time.Now().UnixMilli(), Path: r.URL.Path, Method: r.Method, StatusCode: http.StatusInternalServerError, @@ -106,7 +106,7 @@ func (h *Handlers) HandleAPIRequest(w http.ResponseWriter, r *http.Request) { if len(selector.URLs) == 0 { monitoring.LogRequest(monitoring.RequestLog{ - Time: time.Now().Unix(), + Time: time.Now().UnixMilli(), Path: r.URL.Path, Method: r.Method, StatusCode: http.StatusNotFound, @@ -124,7 +124,7 @@ func (h *Handlers) HandleAPIRequest(w http.ResponseWriter, r *http.Request) { duration := time.Since(start) monitoring.LogRequest(monitoring.RequestLog{ - Time: time.Now().Unix(), + Time: time.Now().UnixMilli(), Path: r.URL.Path, Method: r.Method, StatusCode: http.StatusFound, diff --git a/public/index.html b/public/index.html index fc31017..26dd0c4 100644 --- a/public/index.html +++ b/public/index.html @@ -232,7 +232,7 @@