From 932efbc49ad77594610616c56099c1da703a952d Mon Sep 17 00:00:00 2001 From: Emile Date: Mon, 27 Jan 2020 20:49:30 +0100 Subject: snake_case → camelCase MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssh.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ssh.go') diff --git a/src/ssh.go b/src/ssh.go index 71dc12a..3eb426b 100644 --- a/src/ssh.go +++ b/src/ssh.go @@ -15,7 +15,7 @@ import ( func handlePass(ctx ssh.Context, pass string) bool { // increase the counter tracking the amount of passwords catched - metrics_num_passwords++ + metricsNumPasswords++ log.Printf("%s@%s: '%s'", ctx.User(), ctx.RemoteAddr().String(), pass) // get the ip of the remote user @@ -51,10 +51,10 @@ func handlePass(ctx ssh.Context, pass string) bool { // if an entry for the city does not exists yet, create the city // if the city does allready exist, increase it's value by one - if metrics_city_num[result.City] == 0 { - metrics_city_num[result.City] = 1 + if metricsCityNum[result.City] == 0 { + metricsCityNum[result.City] = 1 } else { - metrics_city_num[result.City] += 1 + metricsCityNum[result.City] += 1 } // if the actual city is not known, create the city -- cgit 1.4.1