diff --git a/swift/common/memcached.py b/swift/common/memcached.py index 589aa3c42a..15b9a193f0 100644 --- a/swift/common/memcached.py +++ b/swift/common/memcached.py @@ -184,7 +184,7 @@ class MemcacheRing(object): command = 'incr' if delta < 0: command = 'decr' - delta = str(int(abs(delta))) + delta = str(abs(int(delta))) for (server, fp, sock) in self._get_conns(key): try: sock.sendall('%s %s %s\r\n' % (command, key, delta))