Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
fc3f7f0fa2
  1. 8
      iguana/iguana777.c
  2. 3
      iguana/iguana_bundles.c

8
iguana/iguana777.c

@ -410,15 +410,7 @@ void iguana_coinloop(void *arg)
}
}
if ( flag == 0 )
{
//printf("IDLE\n");
if ( str[0] != 0 )
{
if ( (rand() % 10000) == 0 )
myallocated(0,0);
}
usleep(coin->polltimeout * 1000);
}
}
}

3
iguana/iguana_bundles.c

@ -439,7 +439,8 @@ void iguana_bundlestats(struct iguana_info *coin,char *str)
//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 )
{
printf("%s\n",str);
myallocated(0,0);
//printf("%s\n",str);
lastdisp = (uint32_t)time(NULL);
}
strcpy(coin->statusstr,str);

Loading…
Cancel
Save