maybe
authorChristian Grothoff <christian@grothoff.org>
Fri, 15 Apr 2011 13:35:14 +0000 (13:35 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 15 Apr 2011 13:35:14 +0000 (13:35 +0000)
src/datastore/perf_datastore_api.c
src/datastore/perf_plugin_datastore.c

index 07f856b237bbd7923f2c84d0ad8d5fb2b6ccd70b..f61b984b8742455b645a109b59f80ac3da9f27ab 100644 (file)
@@ -127,7 +127,7 @@ check_success (void *cls,
   stored_ops++;
   stored_entries++;
   crc->j++;
-  if (crc->j == PUT_10)
+  if (crc->j >= PUT_10)
     {
       crc->j = 0;
       crc->i++;
index 80926bb9f8b27668ba239893de67e0021ae883dd..d80bf082974104f69e39635830cbc7f7bcc71197 100644 (file)
@@ -246,7 +246,7 @@ expiration_get (void *cls,
   memcpy (&i, &cdata[4], sizeof (i));
   hits[i/8] |= (1 << (i % 8));
   crc->cnt++;
-  if (PUT_10 == crc->cnt)
+  if (PUT_10 <= crc->cnt)
     {
       char buf[256];
       unsigned int bc;
@@ -301,7 +301,7 @@ replication_get (void *cls,
   memcpy (&i, &cdata[4], sizeof (i));
   hits[i/8] |= (1 << (i % 8));
   crc->cnt++;
-  if (PUT_10 == crc->cnt)
+  if (PUT_10 <= crc->cnt)
     {
       char buf[256];
       unsigned int bc;