"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/rand.c" between
fio-3.12.tar.bz2 and fio-3.13.tar.bz2

About: fio is a flexible I/O tester (usable for benchmarks and stress/hardware verification).

rand.c  (fio-3.12.tar.bz2):rand.c  (fio-3.13.tar.bz2)
skipping to change at line 169 skipping to change at line 169
this_len = ((unsigned long long)segment * (100 - percentage)) / 1 00; this_len = ((unsigned long long)segment * (100 - percentage)) / 1 00;
if (this_len > len) if (this_len > len)
this_len = len; this_len = len;
__fill_random_buf(buf, this_len, seed); __fill_random_buf(buf, this_len, seed);
len -= this_len; len -= this_len;
if (!len) if (!len)
break; break;
buf += this_len; buf += this_len;
this_len = segment - this_len;
if (this_len > len) if (this_len > len)
this_len = len; this_len = len;
else if (len - this_len <= sizeof(long)) else if (len - this_len <= sizeof(long))
this_len = len; this_len = len;
if (pbytes) if (pbytes)
(void)cpy_pattern(pattern, pbytes, buf, this_len); (void)cpy_pattern(pattern, pbytes, buf, this_len);
else else
memset(buf, 0, this_len); memset(buf, 0, this_len);
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)