summaryrefslogtreecommitdiff
path: root/src/journal/sd-journal.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-07-12 17:35:04 +0200
committerLennart Poettering <lennart@poettering.net>2012-07-13 00:32:32 +0200
commitc4aff78b2dffc1405396bff2458e479d0a19d93b (patch)
tree76b5f0995bb7091fd11a26ac4663abc62211719e /src/journal/sd-journal.c
parent474abe33bba901142d1a5510850b29cbec739d0d (diff)
journal: fix interleaving of files with different time sources
Diffstat (limited to 'src/journal/sd-journal.c')
-rw-r--r--src/journal/sd-journal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c
index 5420be13ea..b6e74a0d4c 100644
--- a/src/journal/sd-journal.c
+++ b/src/journal/sd-journal.c
@@ -240,7 +240,7 @@ static int compare_order(JournalFile *af, Object *ao,
/* Otherwise compare UTC time */
a = le64toh(ao->entry.realtime);
- b = le64toh(ao->entry.realtime);
+ b = le64toh(bo->entry.realtime);
if (a < b)
return -1;
@@ -249,7 +249,7 @@ static int compare_order(JournalFile *af, Object *ao,
/* Finally, compare by contents */
a = le64toh(ao->entry.xor_hash);
- b = le64toh(ao->entry.xor_hash);
+ b = le64toh(bo->entry.xor_hash);
if (a < b)
return -1;