aboutsummaryrefslogtreecommitdiffstats
path: root/web/ajax.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/ajax.cgi
parent1421ac837449d153fbd517caa550d26052156a21 (diff)
DB used to return metres, now returns km.
Diffstat (limited to 'web/ajax.cgi')
-rwxr-xr-xweb/ajax.cgi6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/ajax.cgi b/web/ajax.cgi
index 69c389765..f13529852 100755
--- a/web/ajax.cgi
+++ b/web/ajax.cgi
@@ -59,8 +59,8 @@ sub main {
$list = '';
foreach (@$around_map) {
- my $dist = int($_->{distance}/100+.5)/10;
- $link = Cobrand::url($cobrand, NewURL($q, -retain => 1,
+ my $dist = int($_->{distance}*10+.5)/10;
+ $link = Cobrand::url($cobrand, NewURL($q, -retain => 1,
-url => '/report/' . $_->{id},
pc => undef,
x => undef,
@@ -81,7 +81,7 @@ sub main {
#$list = '';
#foreach (@$fixed) {
# $list .= '<li><a href="/report/' . $_->{id} . '">';
- # $list .= $_->{title} . ' <small>(' . int($_->{distance}/100+.5)/10 . 'km)</small>';
+ # $list .= $_->{title} . ' <small>(' . int($_->{distance}*10+.5)/10 . 'km)</small>';
# $list .= '</a></li>';
#}
#my $f_list = $list;