metrics: Adjust the howSimilar logic vs strings
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 2 Apr 2019 18:43:58 +0000 (20:43 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 2 Apr 2019 19:00:42 +0000 (21:00 +0200)
commit4494a01b794ab785c64c8e93c61ccbfa845bc478
treeb7401804a188d8b5d5c627b1268c1869f902eb43
parente91e222cd21213961d1e6206e1523bee2c21fa0c
metrics: Adjust the howSimilar logic vs strings

Also add a test.
metrics/metrics.go
metrics/metrics_test.go