Browse Source

Test

etomic
jl777 7 years ago
parent
commit
f0a261d8cb
  1. 4
      iguana/exchanges/LP_stats.c

4
iguana/exchanges/LP_stats.c

@ -97,7 +97,7 @@ int32_t LP_statslog_parse()
return(0); return(0);
} }
} }
else if ( 0 ) else if ( 1 )
{ {
if ( IAMLP == 0 ) if ( IAMLP == 0 )
{ {
@ -108,7 +108,7 @@ int32_t LP_statslog_parse()
while ( (c= fgetc(fp)) >= 0 && c != '\n' ) while ( (c= fgetc(fp)) >= 0 && c != '\n' )
; ;
printf("start scanning %s from %ld, found boundary %ld\n",LP_STATSLOG_FNAME,fpos-LP_CLIENT_STATSPARSE,ftell(fp)); printf("start scanning %s from %ld, found boundary %ld\n",LP_STATSLOG_FNAME,fpos-LP_CLIENT_STATSPARSE,ftell(fp));
} } else rewind(fp);
} }
} }
while ( fgets(line,sizeof(line),fp) > 0 ) while ( fgets(line,sizeof(line),fp) > 0 )

Loading…
Cancel
Save