Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

enforce integer weights when writing to ups_cache database

Signed-off-by: Peter Ajamian <peter@pajamian.dhs.org>

Author:    Steve Graham <icdev@mrlock.com>
  • Loading branch information...
commit f69e9c2f132d886658676762fc42d59b395dc812 1 parent 140ebbe
@dtlgc dtlgc authored committed
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/Vend/Ship/QueryUPS.pm
View
2  lib/Vend/Ship/QueryUPS.pm
@@ -29,6 +29,7 @@ use Vend::Util;
use Vend::Interpolate;
use Vend::Data;
use Vend::Ship;
+use POSIX qw(ceil);
my $Have_Business_UPS;
eval {
@@ -113,6 +114,7 @@ sub calculate {
or last CACHE;
my $tname = $db->name();
$cache = 1;
+ $weight = ceil($weight);
%cline = (
weight => $weight,
origin => $origin,
Please sign in to comment.
Something went wrong with that request. Please try again.