Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
cross_day = TRUE;
}
- /* Get interval values in 1/100th of a second */
- get_itv_value(&record_hdr[curr], &record_hdr[!curr], &itv);
-
/* Check time (2) */
if (use_tm_end && (datecmp(rectime, &tm_end, cross_day) > 0)) {
/* End time exceeded */
return 0;
}
+ /* Get interval values in 1/100th of a second */
+ get_itv_value(&record_hdr[curr], &record_hdr[!curr], &itv);
+
dt = itv / 100;
/* Correct rounding error for dt */
if ((itv % 100) >= 50) {
cross_day = TRUE;
}
- /* Get interval value in 1/100th of a second */
- get_itv_value(&record_hdr[curr], &record_hdr[!curr], &itv);
-
/* Check time (2) */
if (use_tm_end && (datecmp(&rectime, &tm_end, cross_day) > 0)) {
/* End time exceeded */
return 0;
}
+ /* Get interval value in 1/100th of a second */
+ get_itv_value(&record_hdr[curr], &record_hdr[!curr], &itv);
+
avg_count++;
/* Test stdout */