]> Git Repo - VerusCoin.git/commitdiff
test
authorjl777 <[email protected]>
Sat, 29 Oct 2016 19:59:36 +0000 (16:59 -0300)
committerjl777 <[email protected]>
Sat, 29 Oct 2016 19:59:36 +0000 (16:59 -0300)
src/komodo_bitcoind.h
src/komodo_gateway.h

index d46c4eca0bd7eab4ba83793ebc21b9a435c23f71..d37f4647f59740ac1ef786f0a19f113da9b4a86e 100644 (file)
@@ -227,7 +227,8 @@ try_again:
             free(s.ptr);
             return(0);
         }
-        printf( "curl_easy_perform() failed: %s %s.(%s %s), retries: %d\n",curl_easy_strerror(res),debugstr,url,command,numretries);
+        if ( (rand() % 1000) == 0 )
+            printf( "curl_easy_perform() failed: %s %s.(%s %s), retries: %d\n",curl_easy_strerror(res),debugstr,url,command,numretries);
         free(s.ptr);
         sleep((1<<numretries));
         goto try_again;
@@ -239,7 +240,7 @@ try_again:
         {
             count++;
             elapsedsum += (OS_milliseconds() - starttime);
-            if ( (count % 10000) == 0)
+            if ( (count % 1000000) == 0)
                 printf("%d: ave %9.6f | elapsed %.3f millis | bitcoind_RPC.(%s) url.(%s)\n",count,elapsedsum/count,(OS_milliseconds() - starttime),command,url);
             if ( retstrp != 0 )
             {
index 87edc62da84c99640c97119907b63b5a7c8193c0..609b8a3d7e77e108ec01aaeb7b01ecc1233b2840 100644 (file)
@@ -280,7 +280,7 @@ int32_t komodo_gateway_block(char *symbol,int32_t height,uint16_t port)
                                     break;
                             if ( i == n )
                                 retval = 0;
-                            else printf("error i.%d vs n.%d\n",i,n);
+                            //else printf("error i.%d vs n.%d\n",i,n);
                         }
                         free_json(json);
                     }
This page took 0.030051 seconds and 4 git commands to generate.