From: Mike Yuan Date: Sat, 23 Dec 2023 20:26:16 +0000 (+0800) Subject: analyze-fdstore: ignore table header when checking stored fd count X-Git-Tag: v256-rc1~1402^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9e710d2665079401e16e74f3366355cdc91ff282;p=thirdparty%2Fsystemd.git analyze-fdstore: ignore table header when checking stored fd count --- diff --git a/src/analyze/analyze-fdstore.c b/src/analyze/analyze-fdstore.c index 13db7f50883..9881520242f 100644 --- a/src/analyze/analyze-fdstore.c +++ b/src/analyze/analyze-fdstore.c @@ -81,7 +81,7 @@ static int dump_fdstore(sd_bus *bus, const char *arg) { if (r < 0) return r; - if (FLAGS_SET(arg_json_format_flags, JSON_FORMAT_OFF) && table_get_rows(table) <= 0) + if (FLAGS_SET(arg_json_format_flags, JSON_FORMAT_OFF) && table_get_rows(table) <= 1) log_info("No file descriptors in fdstore of '%s'.", unit); else { r = table_print_with_pager(table, arg_json_format_flags, arg_pager_flags, /* show_header= */true);