capture: add end time for captures

Update the end time when we flush the buffer to disk. Also add
a way to either incrementally get the end time or rely on the
header when possible.
This commit is contained in:
Christian Hergert
2016-09-27 21:24:33 -07:00
parent 4953731dd7
commit 2197a0c02e
5 changed files with 65 additions and 3 deletions

View File

@ -78,7 +78,8 @@ typedef struct
guint32 padding : 23;
gchar capture_time[64];
gint64 time;
gchar suffix[176];
gint64 end_time;
gchar suffix[168];
} SpCaptureFileHeader;
typedef struct