Permalink
Browse files

Do sprintf of distance for benefit of front page geolocation

  • Loading branch information...
1 parent 9e1f201 commit f6c0c5484dce0192e1aa8b63a34374019511a492 @autarch autarch committed Oct 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/VegGuide/Controller/Entry.pm
@@ -916,7 +916,7 @@ sub images_POST {
unit => $search->unit(),
);
- my $with_units = $distance . ' ' . $search->unit();
+ my $with_units = sprintf( '%.1f', $distance ) . ' ' . $search->unit();
$with_units .= 's' unless $distance == 1;
push @entries, {

0 comments on commit f6c0c54

Please sign in to comment.