Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
fb587ca72b
  1. 2
      iguana/iguana777.h
  2. 4
      iguana/iguana_bundles.c

2
iguana/iguana777.h

@ -30,7 +30,7 @@
#define _IGUANA_MAXBUNDLES 8
#define IGUANA_MAXACTIVEBUNDLES 32
#define IGUANA_MAXFILES 4096
#define IGUANA_BUNDLELOOP 100
#define IGUANA_BUNDLELOOP 1000
#define IGUANA_RPCPORT 7778
#define IGUANA_MAXRAMCHAINSIZE ((uint64_t)1024L * 1024L * 1024L * 16)

4
iguana/iguana_bundles.c

@ -396,7 +396,7 @@ void iguana_bundlestats(struct iguana_info *coin,char *str)
for (i=0; i<IGUANA_MAXPEERS; i++)
coin->peers.active[i].pending = 0;
}
dispflag = (rand() % 10) == 0;
dispflag = (rand() % 100) == 0;
numbundles = numdone = numrecv = numhashes = numcached = totalsaved = numemit = numactive = 0;
firstbundle = -1;
issued = 0;
@ -541,7 +541,7 @@ void iguana_bundlestats(struct iguana_info *coin,char *str)
difft.millis = ((double)tmp / 1000000.);
sprintf(str,"N[%d] d.%d p.%d g.%d A.%d h.%d r.%d c.%d:%d s.%d E.%d:%d M.%d L.%d est.%d %s %d:%02d:%02d %03.3f peers.%d/%d",coin->bundlescount,numdone,coin->numpendings,numbundles,numactive,numhashes,coin->blocksrecv,coin->numcached,coin->cachefreed,totalsaved,coin->numemitted,coin->numreqsent,coin->blocks.hwmchain.height,coin->longestchain,coin->MAXBUNDLES,mbstr(str2,estsize),(int32_t)difft.x/3600,(int32_t)(difft.x/60)%60,(int32_t)difft.x%60,difft.millis,p,coin->MAXPEERS);
//sprintf(str+strlen(str),"%s.%-2d %s time %.2f files.%d Q.%d %d\n",coin->symbol,flag,str,(double)(time(NULL)-coin->starttime)/60.,coin->peers.numfiles,queue_size(&coin->priorityQ),queue_size(&coin->blocksQ));
//if ( time(NULL) > lastdisp+10 && dispflag != 0 )
if ( dispflag != 0 )
{
printf("%s\n",str);
lastdisp = (uint32_t)time(NULL);

Loading…
Cancel
Save