]> git.itanic.dy.fi Git - log-plotter/commit - main.c
Move time stamp initialization after first proper log entry is read
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Mon, 7 Oct 2013 18:11:41 +0000 (21:11 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Mon, 7 Oct 2013 18:11:41 +0000 (21:11 +0300)
commit79e21578d84f3fa874e7bb2d0dc4bc486bb70e0b
treeb0a331ea8bfbe15ae73c2ff6c18876b5bf2076e2
parent5b5bb6500af4523d153306590d24032552cc17ed
Move time stamp initialization after first proper log entry is read

If we initialize the time stamp too early, the first log entry that we
read will not have zero as its timestamp. Move the initialization
after we know the data is valid to avoid the problem.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
main.c