Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
0dd5161025
  1. 9
      iguana/iguana_bundles.c

9
iguana/iguana_bundles.c

@ -506,11 +506,11 @@ void iguana_bundlestats(struct iguana_info *coin,char *str)
//if ( origissue < 8 ) //if ( origissue < 8 )
// origissue = 8; // origissue = 8;
issue = origissue; issue = origissue;
while ( issue > 0 && m++ < 100 )
{
now = (uint32_t)time(NULL); now = (uint32_t)time(NULL);
for (i=0; i<n; i++) for (i=0; i<n&&i<100; i++)
{ {
if ( issue <= 0 )
break;
if ( (bp= coin->bundles[(int32_t)coin->rankedbps[i][1]]) != 0 ) if ( (bp= coin->bundles[(int32_t)coin->rankedbps[i][1]]) != 0 )
{ {
for (j=0; j<bp->n; j++) for (j=0; j<bp->n; j++)
@ -530,9 +530,6 @@ void iguana_bundlestats(struct iguana_info *coin,char *str)
} }
} }
} }
if ( issue <= 0 )
break;
}
} }
/*for (i=0; i<n&&i<3; i++) /*for (i=0; i<n&&i<3; i++)
printf("(%.5f %.0f).%d ",coin->rankedbps[i][0],coin->rankedbps[i][1],coin->bundles[(int32_t)coin->rankedbps[i][1]]->numrecv);*/ printf("(%.5f %.0f).%d ",coin->rankedbps[i][0],coin->rankedbps[i][1],coin->bundles[(int32_t)coin->rankedbps[i][1]]->numrecv);*/

Loading…
Cancel
Save