projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Refactor: move ntohll to a separate helper library
[awesomized/libmemcached]
/
clients
/
memstat.c
diff --git
a/clients/memstat.c
b/clients/memstat.c
index 37e18e229c8e6e10193207d0aeb8d02687ca8712..e6783b68c095c7a8de4b2f88309a2ce5f53aceed 100644
(file)
--- a/
clients/memstat.c
+++ b/
clients/memstat.c
@@
-169,11
+169,11
@@
static void run_analyzer(memcached_st *memc, memcached_stat_st *memc_stat,
gettimeofday(&end_time, NULL);
elapsed_time= timedif(end_time, start_time);
gettimeofday(&end_time, NULL);
elapsed_time= timedif(end_time, start_time);
- elapsed_time /= num_of_tests;
+ elapsed_time /=
(long)
num_of_tests;
if (elapsed_time > slowest_time)
{
if (elapsed_time > slowest_time)
{
- slowest_server= x;
+ slowest_server=
(long)
x;
slowest_time= elapsed_time;
}
slowest_time= elapsed_time;
}