Skip to content

Commit

Permalink
CSV Parser 2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentlaucsb committed Apr 15, 2021
1 parent fe32571 commit 6c210c0
Show file tree
Hide file tree
Showing 7 changed files with 215 additions and 112 deletions.
6 changes: 3 additions & 3 deletions include/internal/csv_stat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ namespace csv {
return ret;
}

CSV_INLINE void CSVStat::calcChunk() {
CSV_INLINE void CSVStat::calc_chunk() {
/** Only create stats counters the first time **/
if (dtypes.empty()) {
/** Go through all records and calculate specified statistics */
Expand Down Expand Up @@ -110,12 +110,12 @@ namespace csv {

/** Chunk rows */
if (this->records.size() == CALC_CHUNK_SIZE) {
calcChunk();
calc_chunk();
}
}

if (!this->records.empty()) {
calcChunk();
calc_chunk();
}
}

Expand Down
2 changes: 1 addition & 1 deletion include/internal/csv_stat.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ namespace csv {
void dtype(CSVField&, const size_t&);

void calc();
void calcChunk();
void calc_chunk();
void calc_worker(const size_t&);

CSVReader reader;
Expand Down
Loading

0 comments on commit 6c210c0

Please sign in to comment.