////////////////////////////////////////////////////////////////////////// Determine if this "stat" (Origin Server) is worthwhile to produce a report for.
| 1890 | // Determine if this "stat" (Origin Server) is worthwhile to produce a |
| 1891 | // report for. |
| 1892 | inline int |
| 1893 | use_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 |