From: Brian Aker Date: Sun, 8 Jan 2012 05:36:12 +0000 (-0800) Subject: Fix floor namespace. X-Git-Tag: 1.0.3~1^2^2~1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=548ffaf81bcd9b3a2c88770b29e5e0558f9baaa3;p=awesomized%2Flibmemcached Fix floor namespace. --- 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) {