about summary refs log tree commit diff
path: root/src/http.go
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-01-27 20:49:30 +0100
committerEmile <hanemile@protonmail.com>2020-01-27 20:49:30 +0100
commit932efbc49ad77594610616c56099c1da703a952d (patch)
tree6e1e24c2295c534e890ccf6aa9726ebe3b2ec081 /src/http.go
parent71bcc1bac69963fd4d016f9eac33b41b7c3e4fb2 (diff)
snake_case → camelCase
Diffstat (limited to 'src/http.go')
-rw-r--r--src/http.go4
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)
 	}
 }