metrics fix

Signed-off-by: Mattias Andrée <maandree@operamail.com>
new weight for distances

Signed-off-by: Mattias Andrée <maandree@operamail.com>