From 420c2991ef5f1c788a1756c2fde5b17bd6e4fa36 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Tue, 1 Jul 2025 11:57:58 +0200 Subject: Invocation server: fix total count of non-cached actions While our presentation shows the details of only up to 30 non-cached actions, the count reported in the heading should still be the total count of all non-cached actions. Fix this. --- doc/invocations-http-server/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/invocations-http-server/server.py') diff --git a/doc/invocations-http-server/server.py b/doc/invocations-http-server/server.py index f9f57aff..e5175fc1 100755 --- a/doc/invocations-http-server/server.py +++ b/doc/invocations-http-server/server.py @@ -548,6 +548,7 @@ class InvocationServer: candidates.sort(reverse=True) non_cached = [] params["more_noncached"] = None + params["non_cached_count"] = len(candidates) if len(candidates) > 30: params["more_non_cached"] = len(candidates) - 30 candidates = candidates[:30] @@ -556,7 +557,6 @@ class InvocationServer: action["name_prefix"] = "%5.1fs" % (t,) non_cached.append(action) params["non_cached"] = non_cached - params["non_cached_count"] = len(non_cached) start_time = profile.get("start time") build_start_time = profile.get("build start time") build_stop_time = profile.get("build stop time") -- cgit v1.2.3