From 847046a7737330af23dc5f6327c169b62eeb02a4 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 21 Oct 2020 01:57:33 -0700 Subject: [PATCH] capinfos: give another reason to process the IDBs at the end of the file. Note that reason in a comment. --- capinfos.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/capinfos.c b/capinfos.c index 719659a4a6..5536766d17 100644 --- a/capinfos.c +++ b/capinfos.c @@ -1324,7 +1324,9 @@ process_cap_file(const char *filename, gboolean need_separator) /* * Get IDB info strings. * We do this at the end, so we can get information for all IDBs in - * the file, even those that come after packet records. + * the file, even those that come after packet records, and so that + * we get, for example, a count of the number of statistics entries + * for each interface as of the *end* of the file. */ idb_info = wtap_file_get_idb_info(cf_info.wth);