Skip to content

Commit

Permalink
Fixed negative waiting time in verbose mode. Closes #2175
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdowle committed Oct 24, 2017
1 parent 6015373 commit 9bbe55f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fread.c
Original file line number Diff line number Diff line change
Expand Up @@ -2304,9 +2304,9 @@ int freadMain(freadMainArgs _args) {
DTPRINT("%8.3fs (%3.0f%%) Allocation of %llu rows x %d cols (%.3fGB)\n",
tAlloc-tColType, 100.0*(tAlloc-tColType)/tTot, (llu)allocnrow, ncol, DTbytes/(1024.0*1024*1024));
thNextGoodLine/=nth; thRead/=nth; thPush/=nth;
double thWaiting = tRead-tAlloc-thNextGoodLine-thRead-thPush;
double thWaiting = tReread-tAlloc-thNextGoodLine-thRead-thPush;
DTPRINT("%8.3fs (%3.0f%%) Reading %d chunks of %.3fMB (%d rows) using %d threads\n",
tRead-tAlloc, 100.0*(tRead-tAlloc)/tTot, nJumps, (double)chunkBytes/(1024*1024), (int)(chunkBytes/meanLineLen), nth);
tReread-tAlloc, 100.0*(tReread-tAlloc)/tTot, nJumps, (double)chunkBytes/(1024*1024), (int)(chunkBytes/meanLineLen), nth);
DTPRINT(" = %8.3fs (%3.0f%%) Finding first non-embedded \\n after each jump\n", thNextGoodLine, 100.0*thNextGoodLine/tTot);
DTPRINT(" + %8.3fs (%3.0f%%) Parse to row-major thread buffers\n", thRead, 100.0*thRead/tTot);
DTPRINT(" + %8.3fs (%3.0f%%) Transpose\n", thPush, 100.0*thPush/tTot);
Expand Down

0 comments on commit 9bbe55f

Please sign in to comment.