From 0334843d9f0a73f613e1dd20e30e6f3333d12d62 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Sat, 3 Dec 2016 14:50:45 +0100 Subject: ipcpd, tools: Fix compilation on 32 bit linux Fixes issues with uint64_t not corresponding with unsigned long in printf statements. Reorganises a calculation to reduce overflows. --- src/tools/cbr/cbr_server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tools/cbr/cbr_server.c') diff --git a/src/tools/cbr/cbr_server.c b/src/tools/cbr/cbr_server.c index 52c2aa73..d4826e03 100644 --- a/src/tools/cbr/cbr_server.c +++ b/src/tools/cbr/cbr_server.c @@ -113,8 +113,8 @@ void handle_flow(int fd) bytes_read - bytes_read_intv, us / 1000, ((sdus - sdus_intv) / (double) us) * MILLION, - 8 * (bytes_read - bytes_read_intv) - / (double)(us)); + 8 * ((bytes_read - bytes_read_intv) + / (double)(us))); iv_start = iv_end; sdus_intv = sdus; bytes_read_intv = bytes_read; -- cgit v1.2.3