Skip to content

Commit

Permalink
Fix duration string in summary line
Browse files Browse the repository at this point in the history
  • Loading branch information
phaag authored Aug 23, 2024
1 parent 341575a commit c0ffe7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nfdump/nfdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,7 @@ int main(int argc, char **argv) {
if (flist.timeWindow->first && (flist.timeWindow->first > t_first_flow)) t_first_flow = flist.timeWindow->first;
if (flist.timeWindow->last && (flist.timeWindow->last < t_last_flow)) t_last_flow = flist.timeWindow->last;
}
double duration = (double)(t_last_flow - t_first_flow) / 1000.0;
double duration = (double)(t_last_flow - t_first_flow);
printf("Time window: %s, Duration:%s\n", TimeString(t_first_flow, t_last_flow), DurationString(duration));
}
printf("Total records processed: %u, passed: %u, Blocks skipped: %u, Bytes read: %llu\n", totalRecords, totalPassed, skippedBlocks,
Expand Down

0 comments on commit c0ffe7d

Please sign in to comment.