X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fnsim%2Fnsim.c;fp=src%2Fplugins%2Fnsim%2Fnsim.c;h=a8c00337364df041050b5378e1bfade30988ddb2;hb=883a8672c14085b61450599188d04317c45f5d12;hp=61d74b0a0113ec0a858530b96213b88f32c17f62;hpb=65e410b3f3d70cd60cf5f84461063682be626cc5;p=vpp.git diff --git a/src/plugins/nsim/nsim.c b/src/plugins/nsim/nsim.c index 61d74b0a011..a8c00337364 100644 --- a/src/plugins/nsim/nsim.c +++ b/src/plugins/nsim/nsim.c @@ -188,7 +188,7 @@ nsim_configure (nsim_main_t * nsm, f64 bandwidth, f64 delay, f64 packet_size, nsm->drop_fraction = drop_fraction; /* delay in seconds, bandwidth in bits/sec */ - total_buffer_size_in_bytes = (u32) ((delay * bandwidth) / 8.0) + 0.5; + total_buffer_size_in_bytes = ((delay * bandwidth) / 8.0) + 0.5; /* * Work out how much buffering each worker needs, assuming decent