author | Alberto Bertogli
<albertito@blitiri.com.ar> 2009-04-11 03:51:37 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2009-04-12 13:51:04 UTC |
parent | f499d8fc24af248ebc4a890ad93610fd1d7b994c |
tests/stress/jiostress | +3 | -2 |
diff --git a/tests/stress/jiostress b/tests/stress/jiostress index ca4a83a..e01d8d7 100755 --- a/tests/stress/jiostress +++ b/tests/stress/jiostress @@ -94,8 +94,9 @@ class Stresser: self.prev_data = self.pread(estart, eend) nd = randbytes(end - start) - self.new_data = self.prev_data[estart:start] \ - + nd + self.prev_data[end:eend] + self.new_data = \ + self.prev_data[:start - estart] \ + + nd + self.prev_data[- (eend - end):] self.jf.pwrite(nd, start) except IOError: sys.exit(1)