From 6316b07a8707e0895061882a310691b70823aa2e Mon Sep 17 00:00:00 2001
From: jl777 <jameslee777@yahoo.com>
Date: Wed, 9 Mar 2016 16:17:15 -0300
Subject: [PATCH] test

---
 iguana/iguana_ramchain.c | 2 +-
 iguana/iguana_recv.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/iguana/iguana_ramchain.c b/iguana/iguana_ramchain.c
index 68e77160f..51c09eaaf 100755
--- a/iguana/iguana_ramchain.c
+++ b/iguana/iguana_ramchain.c
@@ -2127,7 +2127,7 @@ long iguana_ramchain_data(struct iguana_info *coin,struct iguana_peer *addr,stru
     {
         static int32_t numredundant; static double redundantsize; char str[65],str2[65];
         numredundant++, redundantsize += recvlen;
-        printf("ramchaindata have %d:%d at %d | %d blocks %s redundant xfers total %s\n",bp->hdrsi,bundlei,block->fpos,numredundant,mbstr(str,redundantsize),mbstr(str2,totalrecv));
+        printf("ramchaindata have %d:%d at %d | %d blocks %s redundant xfers total %s %.1f%% wasted\n",bp->hdrsi,bundlei,block->fpos,numredundant,mbstr(str,redundantsize),mbstr(str2,totalrecv),100.*redundantsize/totalrecv);
         return(block->fpos);
     }
     fpos = -1;
diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c
index 5563248b1..dc41f2daa 100755
--- a/iguana/iguana_recv.c
+++ b/iguana/iguana_recv.c
@@ -939,7 +939,7 @@ int32_t iguana_pollQsPT(struct iguana_info *coin,struct iguana_peer *addr)
         return(0);
     }
     priority = 1;
-    if ( (req= queue_dequeue(&coin->priorityQ,0)) == 0 && (rand() % 10) == 0 )
+    if ( (req= queue_dequeue(&coin->priorityQ,0)) == 0 && (rand() % 50) == 0 )
     {
         if ( 1 || (rand() & 1) == 0 )
             flag = iguana_neargap(coin,addr);