From 354a6e94f97feaa8eab90f8e7cdf3852160adc3d Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 19 Jan 2018 15:22:30 +0200 Subject: [PATCH] Skip stats.log init on windows --- iguana/exchanges/LP_stats.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_stats.c b/iguana/exchanges/LP_stats.c index ec7380e17..31eacdd9f 100644 --- a/iguana/exchanges/LP_stats.c +++ b/iguana/exchanges/LP_stats.c @@ -101,9 +101,12 @@ void LP_tradecommand_log(cJSON *argjson) static FILE *logfp; char *jsonstr; if ( logfp == 0 ) { +#ifndef _WIN32 if ( (logfp= fopen(LP_STATSLOG_FNAME,"rb+")) != 0 ) fseek(logfp,0,SEEK_END); - else logfp = fopen(LP_STATSLOG_FNAME,"wb"); + else +#endif + logfp = fopen(LP_STATSLOG_FNAME,"wb"); } if ( logfp != 0 ) {