Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
81df1f7cec
  1. 6
      iguana/iguana_bundles.c

6
iguana/iguana_bundles.c

@ -474,9 +474,12 @@ void iguana_bundlestats(struct iguana_info *coin,char *str)
else else
{ {
if ( firstgap == 0 ) if ( firstgap == 0 )
firstgap = lastpending = bp; firstgap = bp;
if ( ++pending == coin->MAXBUNDLES ) if ( ++pending == coin->MAXBUNDLES )
{
lastpending = bp; lastpending = bp;
printf("SET MAXBUNDLES.%d pend.%d\n",bp->hdrsi,pending);
}
if ( bp->emitfinish == 0 ) if ( bp->emitfinish == 0 )
{ {
spaceused += bp->estsize; spaceused += bp->estsize;
@ -515,6 +518,7 @@ void iguana_bundlestats(struct iguana_info *coin,char *str)
coin->current = firstgap; coin->current = firstgap;
if ( lastpending != 0 ) if ( lastpending != 0 )
coin->lastpending = lastpending; coin->lastpending = lastpending;
else coin->lastpending = coin->bundles[coin->bundlescount - 1];
coin->numsaved = numsaved; coin->numsaved = numsaved;
coin->spaceused = spaceused; coin->spaceused = spaceused;
char str4[65]; char str4[65];

Loading…
Cancel
Save