projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Fix for 32bit Debian
[awesomized/libmemcached]
/
libmemcached
/
analyze.cc
diff --git
a/libmemcached/analyze.cc
b/libmemcached/analyze.cc
index 7115d06f2eada95bf8f38433bc3b0280c7dabb57..03c7e85bd89fd5543d1363cc9706eefe498ecf8d 100644
(file)
--- a/
libmemcached/analyze.cc
+++ b/
libmemcached/analyze.cc
@@
-12,8
+12,8
@@
static void calc_largest_consumption(memcached_analysis_st *result,
}
static void calc_oldest_node(memcached_analysis_st *result,
}
static void calc_oldest_node(memcached_analysis_st *result,
-
const uint32_t server_num,
-
const uint32_t uptime)
+ const uint32_t server_num,
+ const uint32_t uptime)
{
if (result->longest_uptime < uptime)
{
{
if (result->longest_uptime < uptime)
{
@@
-96,7
+96,7
@@
memcached_analysis_st *memcached_analyze(memcached_st *memc,
for (uint32_t x= 0; x < server_count; x++)
{
calc_largest_consumption(result, x, memc_stat[x].bytes);
for (uint32_t x= 0; x < server_count; x++)
{
calc_largest_consumption(result, x, memc_stat[x].bytes);
- calc_oldest_node(result, x,
memc_stat[x].uptime
);
+ calc_oldest_node(result, x,
uint32_t(memc_stat[x].uptime)
);
calc_least_free_node(result, x,
memc_stat[x].limit_maxbytes,
memc_stat[x].bytes);
calc_least_free_node(result, x,
memc_stat[x].limit_maxbytes,
memc_stat[x].bytes);