From: Michael Wallner Date: Fri, 4 Dec 2020 10:54:53 +0000 (+0100) Subject: memaslap: fix global/period rate X-Git-Tag: 1.1.0-beta1~70 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=4debceb95ebab23b83c7ebcf153bb321d16b4d52;p=m6w6%2Flibmemcached memaslap: fix global/period rate --- diff --git a/contrib/bin/memaslap/ms_stats.c b/contrib/bin/memaslap/ms_stats.c index 4a82a8db..83a1039c 100644 --- a/contrib/bin/memaslap/ms_stats.c +++ b/contrib/bin/memaslap/ms_stats.c @@ -232,12 +232,12 @@ void ms_dump_format_stats(ms_stat_t *stat, int run_time, int freq, int obj_size) "Geo_dist"); printf("%-8s %-8d %-12llu %-12lld %-10.1f %-10lld %-8lld %-10lld %-10lld %-10.2f %.2f\n", - "Period", freq, (long long) diff_events, (long long) period_tps, global_rate, + "Period", freq, (long long) diff_events, (long long) period_tps, period_rate, (long long) (stat->get_miss - stat->pre_get_miss), (long long) stat->period_min_time, (long long) stat->period_max_time, (long long) period_average, period_std, period_log); printf("%-8s %-8d %-12llu %-12lld %-10.1f %-10lld %-8lld %-10lld %-10lld %-10.2f %.2f\n\n", - "Global", run_time, (long long) events, (long long) global_tps, period_rate, + "Global", run_time, (long long) events, (long long) global_tps, global_rate, (long long) stat->get_miss, (long long) stat->min_time, (long long) stat->max_time, (long long) global_average, global_std, global_log);