diff options
Diffstat (limited to 'src/http.go')
-rw-r--r-- | src/http.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http.go b/src/http.go index 86ad3d1..47f0d75 100644 --- a/src/http.go +++ b/src/http.go @@ -49,10 +49,10 @@ func indexHandler(w http.ResponseWriter, req *http.Request) { func metricsHandler(w http.ResponseWriter, req *http.Request) { // return the overall amount of passwords catched - fmt.Fprintf(w, "num_passwords %d\n", metrics_num_passwords) + fmt.Fprintf(w, "num_passwords %d\n", metricsNumPasswords) // return the amount of passwords catched from a given city - for k, v := range metrics_city_num { + for k, v := range metricsCityNum { fmt.Fprintf(w, "a_metric{city=\"%s\"} %d\n", strings.ToLower(k), v) } } |