diff options
author | Burt P <pburt0@gmail.com> | 2019-07-22 23:03:12 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2019-07-29 19:43:53 -0700 |
commit | 4f9424cb55a1514a5a50ef29897e77f2c836a022 (patch) | |
tree | 95ded2496e77a7c17b31f8560740dd95870dc466 /hardinfo/info.c | |
parent | a9a5d83186b3bca7e6ec41fdb568da13ee76181d (diff) |
struct Info: handle groups with the same name in flatten()
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'hardinfo/info.c')
-rw-r--r-- | hardinfo/info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hardinfo/info.c b/hardinfo/info.c index 1d78422a..bfc11fc2 100644 --- a/hardinfo/info.c +++ b/hardinfo/info.c @@ -242,7 +242,7 @@ static void flatten_group(GString *output, const struct InfoGroup *group, guint guint i; if (group->name != NULL) - g_string_append_printf(output, "[%s]\n", group->name); + g_string_append_printf(output, "[%s#%d]\n", group->name, group_count); if (group->sort != INFO_GROUP_SORT_NONE) g_array_sort(group->fields, sort_functions[group->sort]); |