Removed unnecessary if condition to get get_log_sizes() from CSV.
@@ -226,7 +226,6 @@ print_csv_summary (FILE * fp, GLog * glog)
const char *fmt;
int i = 0, total = 0;
long long t = 0LL;
- off_t log_size = 0;
generate_time ();
strftime (now, DATE_TIME, "%Y-%m-%d %H:%M:%S %z", now_tm);
@@ -280,10 +279,9 @@ print_csv_summary (FILE * fp, GLog * glog)
fprintf (fp, fmt, i++, GENER_ID, total, OVERALL_STATIC);
/* log size */
- if (!glog->piping && conf.filenames_idx)
- log_size = get_log_sizes ();
fmt = "\"%d\",,\"%s\",,,,,,,,\"%jd\",\"%s\"\r\n";
- fprintf (fp, fmt, i++, GENER_ID, (intmax_t) log_size, OVERALL_LOGSIZE);
+ fprintf (fp, fmt, i++, GENER_ID, (intmax_t) get_log_sizes (),
+ OVERALL_LOGSIZE);
/* bandwidth */
fmt = "\"%d\",,\"%s\",,,,,,,,\"%llu\",\"%s\"\r\n";
