]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: activity: fix reporting of task latency
authorWilly Tarreau <w@1wt.eu>
Wed, 10 Sep 2025 08:36:27 +0000 (10:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 10 Sep 2025 08:44:33 +0000 (10:44 +0200)
commit17d33923484ba5661f8938b55cc825b156766955
tree9e84b9442ae05514d76c77e0a4943ce1c428dca7
parentbdff3941952674e741eef95ad1c043be5bbbd361
BUG/MINOR: activity: fix reporting of task latency

In 2.4, "show tasks" was introduced by commit 7eff06e162 ("MINOR:
activity: add a new "show tasks" command to list currently active tasks")
to expose some info about running tasks. The latency is not correct
because it's a u32 subtracted from a u64. It ought to have been casted
to u32 for the operation, which is what this patch does.

This can be backported to 2.4.
src/activity.c