From df5e41363a594385ca1d868da9331ff7418a2d44 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Fri, 23 Jan 2015 01:49:14 +0000 Subject: [PATCH] Fix compile error. --- stats.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/stats.c b/stats.c index fff52ed..6ffbc82 100644 --- a/stats.c +++ b/stats.c @@ -139,13 +139,13 @@ void display_stats(struct stats *st) { uint64_t background_cpu_millis = (uint64_t)st->background_cpu.tv_sec*1000UL + st->background_cpu.tv_nsec/1000000UL; printf("CPU load: %.1f%%\n" - " %lu ms for demodulation\n" - " %lu ms for reading from USB\n" - " %lu ms for network input and background tasks\n", + " %llu ms for demodulation\n" + " %llu ms for reading from USB\n" + " %llu ms for network input and background tasks\n", 0.1 * (demod_cpu_millis + reader_cpu_millis + background_cpu_millis) / (st->end - st->start + 1), - demod_cpu_millis, - reader_cpu_millis, - background_cpu_millis); + (unsigned long long) demod_cpu_millis, + (unsigned long long) reader_cpu_millis, + (unsigned long long) background_cpu_millis); } fflush(stdout);