From 548ffaf81bcd9b3a2c88770b29e5e0558f9baaa3 Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Sat, 7 Jan 2012 21:36:12 -0800 Subject: [PATCH] Fix floor namespace. --- libmemcached/hosts.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmemcached/hosts.cc b/libmemcached/hosts.cc index ac6b03ad..410b38ff 100644 --- a/libmemcached/hosts.cc +++ b/libmemcached/hosts.cc @@ -217,7 +217,7 @@ static memcached_return_t update_continuum(memcached_st *ptr) if (is_ketama_weighted) { float pct= (float)list[host_index].weight / (float)total_weight; - pointer_per_server= (uint32_t) ((floor((float) (pct * MEMCACHED_POINTS_PER_SERVER_KETAMA / 4 * (float)live_servers + 0.0000000001))) * 4); + pointer_per_server= (uint32_t) ((::floor((float) (pct * MEMCACHED_POINTS_PER_SERVER_KETAMA / 4 * (float)live_servers + 0.0000000001))) * 4); pointer_per_hash= 4; if (DEBUG) { -- 2.30.2