From 1ab8df03ce0c731df0f93f4c334682782759d030 Mon Sep 17 00:00:00 2001 From: Frediano Ziglio Date: Thu, 12 Nov 2015 13:25:09 +0000 Subject: worker: fix compiling with COMPRESS_STAT enabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc-AndrĂ© Lureau Signed-off-by: Frediano Ziglio Acked-by: Fabiano FidĂȘncio --- server/stat.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/stat.h') diff --git a/server/stat.h b/server/stat.h index 52e6e781..3c980d04 100644 --- a/server/stat.h +++ b/server/stat.h @@ -87,13 +87,13 @@ static inline void stat_compress_init(stat_info_t *info, const char *name) stat_reset(info); } -static inline void stat_compress_add(RedWorker *worker, stat_info_t *info, +static inline void stat_compress_add(stat_info_t *info, stat_time_t start, int orig_size, int comp_size) { stat_time_t time; ++info->count; - time = stat_now(worker) - start; + time = stat_now(info->clock) - start; info->total += time; info->max = MAX(info->max, time); info->min = MIN(info->min, time); @@ -101,7 +101,7 @@ static inline void stat_compress_add(RedWorker *worker, stat_info_t *info, info->comp_size += comp_size; } -double inline stat_byte_to_mega(uint64_t size) +static inline double stat_byte_to_mega(uint64_t size) { return (double)size / (1000 * 1000); } -- cgit