]> git.ipfire.org Git - thirdparty/squid.git/commit
Maintenance: improved stat5minClientRequests() naming (#1951)
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Sun, 1 Dec 2024 01:48:10 +0000 (01:48 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 1 Dec 2024 10:16:50 +0000 (10:16 +0000)
commit72f2eff87f041556bdc9e141bfb594d3afda9d4f
tree9a83fb05c6c92a03b225647fea0d7ec5f4406cf2
parentc565067bf2ddf3ce88ed27d71d1d8816ee03047e
Maintenance: improved stat5minClientRequests() naming (#1951)

stat5minClientRequests() was to meant to return the number of recent
client requests. However, the function did not provide implied 5 minute
precision. It returned, roughly speaking, the number of requests during
the last 0-6 minutes. The new, less strict function name and boolean
type avoid this false precision implication.

Also removed unused stat5minCPUUsage().
src/neighbors.cc
src/stat.cc
src/stat.h