From 98a67c0c0e490fc9f5602ffe0befb27a81c262fd Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 8 May 2017 14:55:28 +0300 Subject: [PATCH] Test --- iguana/exchanges/stats.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/stats.c b/iguana/exchanges/stats.c index dcdd0ac67..355d50977 100644 --- a/iguana/exchanges/stats.c +++ b/iguana/exchanges/stats.c @@ -54,7 +54,7 @@ struct komodo_state uint32_t RTbufs[64][3]; uint64_t RTmask; }; -struct komodo_state KOMODO_STATE; +struct komodo_state KOMODO_STATE[2]; int32_t iguana_socket(int32_t bindflag,char *hostname,uint16_t port) { @@ -831,7 +831,7 @@ void stats_pricefeed(struct komodo_state *sp,char *symbol,int32_t ht,uint32_t *p //for (i=0; iSAVEDTIMESTAMP,dstr(pvals[32]) / 1000.); } } @@ -966,10 +966,10 @@ int32_t stats_stateupdate(FILE *logfp,char *destdir,char *statefname,int32_t max starttime = (uint32_t)time(NULL); strcpy(base,"KV"); strcpy(symbol,"KV"); - sp = &KOMODO_STATE; n = 0; for (iter=0; iter<2; iter++) { + sp = &KOMODO_STATE[iter]; if ( (fp= fopen(iter == 0 ? statefname : komodofile,"rb")) != 0 ) { fseek(fp,0,SEEK_END);