chiark / gitweb /
Calculate total distance correctly