|
|
@ -475,13 +475,13 @@ void iguana_bundlestats(struct iguana_info *coin,char *str) |
|
|
|
{ |
|
|
|
if ( firstgap == 0 ) |
|
|
|
firstgap = bp; |
|
|
|
if ( ++pending == coin->MAXBUNDLES ) |
|
|
|
{ |
|
|
|
lastpending = bp; |
|
|
|
printf("SET MAXBUNDLES.%d pend.%d\n",bp->hdrsi,pending); |
|
|
|
} |
|
|
|
if ( bp->emitfinish == 0 ) |
|
|
|
{ |
|
|
|
if ( ++pending == coin->MAXBUNDLES ) |
|
|
|
{ |
|
|
|
lastpending = bp; |
|
|
|
printf("SET MAXBUNDLES.%d pend.%d\n",bp->hdrsi,pending); |
|
|
|
} |
|
|
|
spaceused += bp->estsize; |
|
|
|
sortbuf[m*2] = bp->metric; |
|
|
|
sortbuf[m*2 + 1] = i; |
|
|
@ -522,7 +522,7 @@ void iguana_bundlestats(struct iguana_info *coin,char *str) |
|
|
|
coin->numsaved = numsaved; |
|
|
|
coin->spaceused = spaceused; |
|
|
|
char str4[65]; |
|
|
|
sprintf(str,"%d 1st.%d-%d N[%d] Q.%d h.%d r.%d c.%s s.%d d.%d E.%d:%d M.%d L.%d est.%d %s %d:%02d:%02d %03.3f peers.%d/%d Q.(%d %d)",firstgap!=0?firstgap->numsaved:0,firstgap!=0?firstgap->hdrsi:0,lastpending!=0?lastpending->hdrsi:0,count,coin->numbundlesQ,numhashes,coin->blocksrecv,mbstr(str4,spaceused),numsaved,done,numemit,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,queue_size(&coin->priorityQ),queue_size(&coin->blocksQ)); |
|
|
|
sprintf(str,"%d 1st.%d-%d N[%d] Q.%d h.%d r.%d c.%s s.%d d.%d E.%d:%d M.%d L.%d est.%d %s %d:%02d:%02d %03.3f peers.%d/%d Q.(%d %d)",firstgap!=0?firstgap->numsaved:0,firstgap!=0?firstgap->hdrsi:0,coin->lastpending!=0?coin->lastpending->hdrsi:0,count,coin->numbundlesQ,numhashes,coin->blocksrecv,mbstr(str4,spaceused),numsaved,done,numemit,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,queue_size(&coin->priorityQ),queue_size(&coin->blocksQ)); |
|
|
|
//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 ) |
|
|
|
{ |
|
|
|