Squid Web Cache master
Loading...
Searching...
No Matches
Incoming.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2025 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9#include "squid.h"
10
11#if USE_POLL || USE_SELECT
12#include "comm/Incoming.h"
13
14void
16{
17 if (n < 0)
18 return;
19
20 interval += cfg.average - n;
21
22 if (interval < cfg.min_poll)
23 interval = cfg.min_poll;
24
27
28 if (n > nMaximum)
29 n = nMaximum;
30
31 history.count(n);
32}
33
34#endif /* USE_POLL || USE_SELECT */
static const int MaxInterval
Definition Incoming.h:56
void finishPolling(int, SquidConfig::CommIncoming::Measure &)
Definition Incoming.cc:15
StatHist history
Definition Incoming.h:104
void count(double val)
Definition StatHist.cc:55