Browse Source

Test

etomic
jl777 7 years ago
parent
commit
10700220fd
  1. 2
      iguana/exchanges/LP_prices.c

2
iguana/exchanges/LP_prices.c

@ -646,7 +646,7 @@ void LP_pricefeedupdate(bits256 pubkey,char *base,char *rel,double price)
struct LP_priceinfo *basepp,*relpp; uint32_t now; uint64_t price64; struct LP_pubkeyinfo *pubp; char str[65],fname[512]; struct LP_priceinfo *basepp,*relpp; uint32_t now; uint64_t price64; struct LP_pubkeyinfo *pubp; char str[65],fname[512];
if ( fp == 0 ) if ( fp == 0 )
{ {
sprintf(fname,"%s/PRICES/%s_%s",GLOBAL_DBDIR,base,rel), OS_ensure_directory(fname); sprintf(fname,"%s/PRICES/%s_%s",GLOBAL_DBDIR,base,rel);
fp = OS_appendfile(fname); fp = OS_appendfile(fname);
} }
if ( fp != 0 && price > SMALLVAL ) if ( fp != 0 && price > SMALLVAL )

Loading…
Cancel
Save