Fixed compilation on Windows (patch contributed by Vladislav Vaintroub).

This commit is contained in:
Alexey Kopytov
2011-09-26 17:48:33 +04:00
parent 5020eea644
commit 6f3592ec28
2 changed files with 4 additions and 5 deletions

View File

@ -427,8 +427,7 @@ static void *runner_thread(void *arg)
if (sb_globals.tx_rate > 0)
{
/* initialize tx_rate variables */
period_ns = round(1000000000.0 / sb_globals.tx_rate *
sb_globals.num_threads);
period_ns = floor(1e9 / sb_globals.tx_rate * sb_globals.num_threads + 0.5);
if (sb_globals.tx_jitter > 0)
jitter_ns = sb_globals.tx_jitter * 1000;
else

View File

@ -88,7 +88,7 @@ static sb_test_t memory_test =
/* Test arguments */
static ssize_t memory_block_size;
static off_t memory_total_size;
static long long memory_total_size;
static unsigned int memory_scope;
static unsigned int memory_oper;
static unsigned int memory_access_rnd;
@ -98,8 +98,8 @@ static unsigned int memory_hugetlb;
/* Statistics */
static unsigned int total_ops;
static off_t total_bytes;
static off_t last_bytes;
static long long total_bytes;
static long long last_bytes;
/* Array of per-thread buffers */
static int **buffers;