|
@@ -33,7 +33,7 @@ static int test_destroy_not_pending_calls = 0;
|
|
|
static int test_doesnt_want_writes_count = 0;
|
|
|
static int test_dumpstats_calls = 0;
|
|
|
static int test_has_waiting_cells_count = 0;
|
|
|
-static double test_overhead_estimate = 1.0f;
|
|
|
+static double test_overhead_estimate = 1.0;
|
|
|
static int test_releases_count = 0;
|
|
|
static circuitmux_t *test_target_cmux = NULL;
|
|
|
static unsigned int test_cmux_cells = 0;
|
|
@@ -792,7 +792,7 @@ test_channel_incoming(void *arg)
|
|
|
/* Accept cells to lower layer */
|
|
|
test_chan_accept_cells = 1;
|
|
|
/* Use default overhead factor */
|
|
|
- test_overhead_estimate = 1.0f;
|
|
|
+ test_overhead_estimate = 1.0;
|
|
|
|
|
|
ch = new_fake_channel();
|
|
|
tt_assert(ch);
|
|
@@ -881,7 +881,7 @@ test_channel_lifecycle(void *arg)
|
|
|
/* Accept cells to lower layer */
|
|
|
test_chan_accept_cells = 1;
|
|
|
/* Use default overhead factor */
|
|
|
- test_overhead_estimate = 1.0f;
|
|
|
+ test_overhead_estimate = 1.0;
|
|
|
|
|
|
ch1 = new_fake_channel();
|
|
|
tt_assert(ch1);
|
|
@@ -989,7 +989,7 @@ test_channel_lifecycle_2(void *arg)
|
|
|
/* Accept cells to lower layer */
|
|
|
test_chan_accept_cells = 1;
|
|
|
/* Use default overhead factor */
|
|
|
- test_overhead_estimate = 1.0f;
|
|
|
+ test_overhead_estimate = 1.0;
|
|
|
|
|
|
ch = new_fake_channel();
|
|
|
tt_assert(ch);
|
|
@@ -1136,7 +1136,7 @@ test_channel_multi(void *arg)
|
|
|
/* Accept cells to lower layer */
|
|
|
test_chan_accept_cells = 1;
|
|
|
/* Use default overhead factor */
|
|
|
- test_overhead_estimate = 1.0f;
|
|
|
+ test_overhead_estimate = 1.0;
|
|
|
|
|
|
ch1 = new_fake_channel();
|
|
|
tt_assert(ch1);
|
|
@@ -1444,7 +1444,7 @@ test_channel_queue_incoming(void *arg)
|
|
|
/* Accept cells to lower layer */
|
|
|
test_chan_accept_cells = 1;
|
|
|
/* Use default overhead factor */
|
|
|
- test_overhead_estimate = 1.0f;
|
|
|
+ test_overhead_estimate = 1.0;
|
|
|
|
|
|
ch = new_fake_channel();
|
|
|
tt_assert(ch);
|
|
@@ -1589,11 +1589,11 @@ test_channel_queue_size(void *arg)
|
|
|
channel_update_xmit_queue_size(ch);
|
|
|
tt_u64_op(ch->bytes_queued_for_xmit, ==, 512);
|
|
|
/* Now try a larger one */
|
|
|
- test_overhead_estimate = 2.0f;
|
|
|
+ test_overhead_estimate = 2.0;
|
|
|
channel_update_xmit_queue_size(ch);
|
|
|
tt_u64_op(ch->bytes_queued_for_xmit, ==, 1024);
|
|
|
/* Go back to 1.0 */
|
|
|
- test_overhead_estimate = 1.0f;
|
|
|
+ test_overhead_estimate = 1.0;
|
|
|
channel_update_xmit_queue_size(ch);
|
|
|
tt_u64_op(ch->bytes_queued_for_xmit, ==, 512);
|
|
|
/* Check the global estimate too */
|