projects
/
awesomized
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
fbdda95
)
Fix floor namespace.
author
Brian Aker
<brian@tangent.org>
Sun, 8 Jan 2012 05:36:12 +0000
(21:36 -0800)
committer
Brian Aker
<brian@tangent.org>
Sun, 8 Jan 2012 05:36:12 +0000
(21:36 -0800)
libmemcached/hosts.cc
patch
|
blob
|
history
diff --git
a/libmemcached/hosts.cc
b/libmemcached/hosts.cc
index ac6b03ad0e810115d16e673f795805ec5cb7bb96..410b38ff1496d4a63e0400dca63754a5bdabf3e8 100644
(file)
--- 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)
{