diff --git a/crypto777/iguana_OS.c b/crypto777/iguana_OS.c index bf9048c59..31d14dc6f 100755 --- a/crypto777/iguana_OS.c +++ b/crypto777/iguana_OS.c @@ -81,8 +81,8 @@ long myallocated(uint8_t type,long change) Total_allocated += change; if ( Total_allocated > HWM_allocated ) { - printf("HWM allocated %ld %s\n",(long)Total_allocated,mbstr(str,Total_allocated)); HWM_allocated = Total_allocated * 1.5; + printf("HWM allocated %ld %s\n",(long)Total_allocated,mbstr(str,Total_allocated)); } } return(total); diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 29e7d0c78..2e7bd8586 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -999,7 +999,7 @@ void iguana_bundlestats(struct iguana_info *coin,char *str) else if ( bp == coin->current ) { for (j=0; jn; j++) - if ( (block= bp->blocks[j]) != 0 && (block->RO.recvlen == 0 || block->fpipbits == 0 || block->fpos < 0) && time(NULL) > block->issued+3 ) + if ( (block= bp->blocks[j]) != 0 && (block->RO.recvlen == 0 || block->fpipbits == 0 || block->fpos < 0) && time(NULL) > block->issued+3 && (rand() % 10) == 0 ) { if ( (r= coin->peers.numranked) != 0 && (addr= coin->peers.ranked[rand() % r]) != 0 && addr->dead == 0 && addr->usock >= 0 ) iguana_sendblockreqPT(coin,addr,bp,j,block->RO.hash2,0); printf("current stop [%d:%d]\n",bp->hdrsi,j);