static unsigned long long get_next_offset(struct thread_data *td)
{
- unsigned long long b;
+ unsigned long long kb;
long r;
if (!td->sequential) {
lrand48_r(&td->random_state, &r);
- b = (1+(double) (td->kb-1) * r / (RAND_MAX+1.0));
+ kb = (1+(double) (td->kb-1) * r / (RAND_MAX+1.0));
} else
- b = td->last_kb << 10;
+ kb = td->last_kb;
- return b + td->file_offset;
+ return (kb << 10) + td->file_offset;
}
static unsigned int get_next_buflen(struct thread_data *td)