summaryrefslogtreecommitdiff
path: root/mbw.c
diff options
context:
space:
mode:
authorAndras HORVATH <andras.horvath@gmail.com>2012-03-06 23:22:14 +0100
committerAndras HORVATH <andras.horvath@gmail.com>2012-03-06 23:22:14 +0100
commit05f68a6108b2a230b5d2ce8b89f4564f6564c1a7 (patch)
tree4ee9cb4795afc80f6bc4e650691213c37f6365e7 /mbw.c
parente614955e981ea9f64deff7b44046b578c6b20e9b (diff)
Fix MCBLOCK test: actually copy to the full buffer, not just its first $blocksize.
Diffstat (limited to 'mbw.c')
-rw-r--r--mbw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbw.c b/mbw.c
index 4481853..a44dc85 100644
--- a/mbw.c
+++ b/mbw.c
@@ -99,10 +99,10 @@ double worker(unsigned long long asize, long *a, long *b, int type, unsigned lon
} else if(type==2) { /* memcpy block test */
gettimeofday(&starttime, NULL);
for(t=0; t<array_bytes; t+=block_size) {
- c=mempcpy(b,a,block_size);
+ b=mempcpy(b,a,block_size);
}
if(t>array_bytes){
- c=mempcpy(b,a,t-array_bytes);
+ b=mempcpy(b,a,t-array_bytes);
}
gettimeofday(&endtime, NULL);
} else { /* dumb test */