1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00

journal: properly determine cutoff max date

This commit is contained in:
Lennart Poettering 2012-10-26 01:07:41 +02:00
parent df688b23da
commit 0f91dd8749

View File

@ -2121,7 +2121,7 @@ _public_ int sd_journal_get_cutoff_realtime_usec(sd_journal *j, uint64_t *from,
if (from)
*from = MIN(fr, *from);
if (to)
*to = MIN(t, *to);
*to = MAX(t, *to);
}
}
@ -2160,7 +2160,7 @@ _public_ int sd_journal_get_cutoff_monotonic_usec(sd_journal *j, sd_id128_t boot
if (from)
*from = MIN(fr, *from);
if (to)
*to = MIN(t, *to);
*to = MAX(t, *to);
}
}