Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
cross_day = TRUE;
}
- /* Check time (2) */
- if (use_tm_start && (datecmp(rectime, &tm_start, cross_day) < 0))
- /* it's too soon... */
- return 0;
-
/* Get interval values in 1/100th of a second */
get_itv_value(&record_hdr[curr], &record_hdr[!curr], &itv);
- /* Check time (3) */
+ /* Check time (2) */
if (use_tm_end && (datecmp(rectime, &tm_end, cross_day) > 0)) {
- /* It's too late... */
+ /* End time exceeded */
*cnt = 0;
return 0;
}
cross_day = TRUE;
}
- /* Check time (2) */
- if (use_tm_start && (datecmp(&rectime, &tm_start, cross_day) < 0))
- /* it's too soon... */
- return 0;
-
/* Get interval value in 1/100th of a second */
get_itv_value(&record_hdr[curr], &record_hdr[!curr], &itv);
- /* Check time (3) */
+ /* Check time (2) */
if (use_tm_end && (datecmp(&rectime, &tm_end, cross_day) > 0)) {
- /* It's too late... */
+ /* End time exceeded */
*cnt = 0;
return 0;
}