aboutsummaryrefslogtreecommitdiffstats
path: root/web/index.cgi
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@fury.ukcod.org.uk>2011-02-14 12:41:34 +0000
committerMatthew Somerville <matthew@fury.ukcod.org.uk>2011-02-14 12:41:34 +0000
commit919d334cf8d9e1880bce21a7df28c0fd5abcdb47 (patch)
tree2a2c029ed2436627c2896b2a838145c1bcbe9119 /web/index.cgi
parent1421ac837449d153fbd517caa550d26052156a21 (diff)
DB used to return metres, now returns km.
Diffstat (limited to 'web/index.cgi')
-rwxr-xr-xweb/index.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/index.cgi b/web/index.cgi
index 1a60b05a7..cd9a7574c 100755
--- a/web/index.cgi
+++ b/web/index.cgi
@@ -903,7 +903,7 @@ sub display_location {
foreach (@$around_map) {
my $report_url = Cobrand::url($cobrand, NewURL($q, -retain => 1, -url => '/report/' . $_->{id}, pc => undef, x => undef, 'y' => undef), $q);
$around_list .= '<li><a href="' . $report_url . '">';
- my $dist = int($_->{distance}/100+0.5);
+ my $dist = int($_->{distance}*10+0.5);
$dist = $dist / 10;
$around_list .= ent($_->{title}) . '</a> <small>(';
$around_list .= Page::prettify_epoch($q, $_->{time}, 1) . ', ';