[DRBD-cvs] svn commit by phil - r2528 - branches/drbd-0.7/benchmark
- Two micro fixes.
drbd-cvs at lists.linbit.com
drbd-cvs at lists.linbit.com
Thu Oct 12 18:18:49 CEST 2006
Author: phil
Date: 2006-10-12 18:18:48 +0200 (Thu, 12 Oct 2006)
New Revision: 2528
Modified:
branches/drbd-0.7/benchmark/io-latency-test.c
Log:
Two micro fixes.
Modified: branches/drbd-0.7/benchmark/io-latency-test.c
===================================================================
--- branches/drbd-0.7/benchmark/io-latency-test.c 2006-10-12 08:09:35 UTC (rev 2527)
+++ branches/drbd-0.7/benchmark/io-latency-test.c 2006-10-12 16:18:48 UTC (rev 2528)
@@ -74,6 +74,7 @@
last_record_nr);
io_state = IO_BLOCKED;
} else {
+ if(wr==0) wr=1;
avg_write = wd/wr;
printf("Current record: %lu "
@@ -130,9 +131,9 @@
);
pthread_mutex_init(&data.mutex,NULL);
+ data.record_nr = record_nr;
data.write_duration_us = 0;
data.write_duration_records = 1;
-
pthread_create(&watch_dog,NULL,wd_thread,&data);
for(;;record_nr++) {
More information about the drbd-cvs
mailing list