From d894bf088706ae92a4f0da8e436952b4ecd0656d Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 26 Aug 2017 13:28:21 +0200 Subject: [PATCH] Test --- iguana/dpow/dpow_prices.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iguana/dpow/dpow_prices.c b/iguana/dpow/dpow_prices.c index f77073532..0d966f1a7 100755 --- a/iguana/dpow/dpow_prices.c +++ b/iguana/dpow/dpow_prices.c @@ -1832,6 +1832,9 @@ void PAX_genecbsplines(struct PAX_data *dp) portable_mutex_unlock(&mutex); } +#define BTCFACTOR_TIMESTAMP 1503746319 +#define BTCFACTOR_HEIGHT 466266 + int32_t PAX_idle(struct supernet_info *myinfo)//struct PAX_data *argdp,int32_t idlegap) { static double lastupdate,lastdayupdate; static int32_t didinit; static char *userhome; int32_t idlegap = 10; @@ -1921,7 +1924,7 @@ int32_t PAX_idle(struct supernet_info *myinfo)//struct PAX_data *argdp,int32_t i pvals[2] = MAX_CURRENCIES + 3; pvals[3] = PAX_val32(dp->kmdbtc * 1000); double btcfactor; - if ( time(NULL) > 1503742923+24*3600*0 ) + if ( time(NULL) > BTCFACTOR_TIMESTAMP ) btcfactor = .00001; else btcfactor = .001; pvals[4] = PAX_val32(dp->btcusd * btcfactor);