Browse Source

Test

etomic
jl777 8 years ago
parent
commit
1a1b1e6758
  1. 4
      crypto777/OS_time.c
  2. 8
      iguana/exchanges/LP_rpc.c
  3. 1
      iguana/orderbooks.h

4
crypto777/OS_time.c

@ -591,8 +591,8 @@ int32_t conv_date(int32_t *secondsp,char *date)
if ( hour >= 0 && hour < 24 && min >= 0 && min < 60 && sec >= 0 && sec < 60 ) if ( hour >= 0 && hour < 24 && min >= 0 && min < 60 && sec >= 0 && sec < 60 )
*secondsp = (3600*hour + 60*min + sec); *secondsp = (3600*hour + 60*min + sec);
else printf("ERROR: seconds.%d %d %d %d, len.%d\n",*secondsp,hour,min,sec,len); else printf("ERROR: seconds.%d %d %d %d, len.%d\n",*secondsp,hour,min,sec,len);
} printf("(%s) -> Y.%d M.%d D.%d %d:%d:%d\n",date,year,month,day,hour,min,sec);
//printf("(%s) -> Y.%d M.%d D.%d %d:%d:%d\n",date,year,month,day,hour,min,sec); } else printf("short len.(%s) from (%s)\n",date,origdate);
sprintf(origdate,"%d-%02d-%02d",year,month,day); //2015-07-25T22:34:31Z sprintf(origdate,"%d-%02d-%02d",year,month,day); //2015-07-25T22:34:31Z
if ( strcmp(tmpdate,origdate) != 0 ) if ( strcmp(tmpdate,origdate) != 0 )
{ {

8
iguana/exchanges/LP_rpc.c

@ -73,6 +73,14 @@ char *issue_LP_clientgetutxos(char *destip,uint16_t destport,char *coin,int32_t
//return(retstr); //return(retstr);
} }
conv_date date conversion error (0-06-17) -> ()
conv_date date conversion error (0-06-20) -> ()
conv_date date conversion error (0-06-18) -> ()
conv_date date conversion error (0-06-21) -> ()
conv_date date conversion error (0-06-19) -> ()
conv_date date conversion error (0-06-22) -> ()
change to nanomsg write only, enforce fee, comms api
char *issue_LP_notify(char *destip,uint16_t destport,char *ipaddr,uint16_t port,double profitmargin,int32_t numpeers,int32_t numutxos) char *issue_LP_notify(char *destip,uint16_t destport,char *ipaddr,uint16_t port,double profitmargin,int32_t numpeers,int32_t numutxos)
{ {
char url[512],*retstr; char url[512],*retstr;

1
iguana/orderbooks.h

@ -3341,6 +3341,7 @@ int32_t prices_idle(int32_t peggyflag,int32_t idlegap)
if ( milliseconds() > lastdayupdate + 60000*60 ) if ( milliseconds() > lastdayupdate + 60000*60 )
{ {
lastdayupdate = milliseconds(); lastdayupdate = milliseconds();
printf("call ecb_matrix.(%s)\n",dp->edate);
if ( (datenum= ecb_matrix(dp->ecbmatrix,dp->edate)) > 0 ) if ( (datenum= ecb_matrix(dp->ecbmatrix,dp->edate)) > 0 )
{ {
dp->ecbdatenum = datenum; dp->ecbdatenum = datenum;

Loading…
Cancel
Save