journal: fix --until

https://bugs.freedesktop.org/show_bug.cgi?id=58946
This commit is contained in:
Paul W. Frields
2013-02-24 15:28:37 +01:00
committed by Zbigniew Jędrzejewski-Szmek
parent cb96a2c69a
commit 3ba09ee8eb
+3 -1
View File
@@ -433,7 +433,7 @@ static int parse_argv(int argc, char *argv[]) {
if (arg_follow && !arg_no_tail && arg_lines < 0)
arg_lines = 10;
if (arg_since_set && arg_until_set && arg_since_set > arg_until_set) {
if (arg_since_set && arg_until_set && arg_since > arg_until) {
log_error("--since= must be before --until=.");
return -EINVAL;
}
@@ -1076,6 +1076,8 @@ int main(int argc, char *argv[]) {
log_error("Failed to determine timestamp: %s", strerror(-r));
goto finish;
}
if (usec > arg_until)
goto finish;
}
if (!arg_merge) {