Skip to content

Commit

Permalink
Fix copy paste error
Browse files Browse the repository at this point in the history
Co-authored-by: Stefan Majewsky <[email protected]>
  • Loading branch information
SuperSandro2000 and majewsky authored Dec 11, 2024
1 parent 040f143 commit f58a455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func handlerMetrics(w http.ResponseWriter, r *http.Request) {

if t, err := time.ParseDuration(query.Get("duration")); err == nil {
if t < 0 {
http.Error(w, "high_drift cannot be negative", http.StatusBadRequest)
http.Error(w, "duration cannot be negative", http.StatusBadRequest)
return
}
d = t
Expand Down

0 comments on commit f58a455

Please sign in to comment.