MCPcopy Create free account
hub / github.com/apache/trafficserver / use_origin

Function use_origin

src/traffic_logstats/logstats.cc:1892–1898  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////////// Determine if this "stat" (Origin Server) is worthwhile to produce a report for.

Source from the content-addressed store, hash-verified

1890// Determine if this "stat" (Origin Server) is worthwhile to produce a
1891// report for.
1892inline int
1893use_origin(const OriginStats *stat)
1894{
1895 return cl.report_per_user != 0 ?
1896 (stat->total.count > cl.min_hits) :
1897 ((stat->total.count > cl.min_hits) && (nullptr != strchr(stat->server, '.')) && (nullptr == strchr(stat->server, '%')));
1898}
1899
1900///////////////////////////////////////////////////////////////////////////////
1901// Produce a nicely formatted output for a stats collection on a stream

Callers 1

my_exitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected