From 5cc83ebb301b403de2fb0688a7b3e47b062ba650 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 28 Aug 2016 00:10:49 -0300 Subject: [PATCH] test --- iguana/iguana_bundles.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index c98d1f3bc..ea59a89a5 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -1531,7 +1531,10 @@ void iguana_bundlestats(struct supernet_info *myinfo,struct iguana_info *coin,ch if ( logfp == 0 ) logfp = fopen("debug.log","wb"); if ( logfp != 0 ) + { fprintf(logfp,"%s bQ.%d %d:%02d:%02d stuck.%d max.%d\n",str,queue_size(&bundlesQ),(int32_t)difft.x/3600,(int32_t)(difft.x/60)%60,(int32_t)difft.x%60,coin->stucktime!=0?(uint32_t)time(NULL) - coin->stucktime:0,coin->maxstuck); + fflush(logfp); + } //printf("%s bQ.%d %d:%02d:%02d stuck.%d max.%d\n",str,queue_size(&bundlesQ),(int32_t)difft.x/3600,(int32_t)(difft.x/60)%60,(int32_t)difft.x%60,coin->stucktime!=0?(uint32_t)time(NULL) - coin->stucktime:0,coin->maxstuck); strcpy(coin->lastdispstr,str); if ( (rand() % 100) == 0 )