Fix floor namespace.
authorBrian Aker <brian@tangent.org>
Sun, 8 Jan 2012 05:36:12 +0000 (21:36 -0800)
committerBrian Aker <brian@tangent.org>
Sun, 8 Jan 2012 05:36:12 +0000 (21:36 -0800)
libmemcached/hosts.cc

index ac6b03ad0e810115d16e673f795805ec5cb7bb96..410b38ff1496d4a63e0400dca63754a5bdabf3e8 100644 (file)
@@ -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)
         {