/*
- * AUTHOR: Francesco Chemolli (Harvest-derived)
- *
- * SQUID Web Proxy Cache http://www.squid-cache.org/
- * ----------------------------------------------------------
- *
- * Squid is the result of efforts by numerous individuals from
- * the Internet community; see the CONTRIBUTORS file for full
- * details. Many organizations have provided support for Squid's
- * development; see the SPONSORS file for full details. Squid is
- * Copyrighted (C) 2001 by the Regents of the University of
- * California; see the COPYRIGHT file for full details. Squid
- * incorporates software developed and/or copyrighted by other
- * sources; see the CREDITS file for full details.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
- *
+ * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
*
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
*/
+
#ifndef STATCOUNTERS_H_
#define STATCOUNTERS_H_
+#include "base/ByteCounter.h"
#include "StatHist.h"
#if USE_CACHE_DIGESTS
int mem_hits;
int disk_hits;
int errors;
- kb_t kbytes_in;
- kb_t kbytes_out;
- kb_t hit_kbytes_out;
+ ByteCounter kbytes_in;
+ ByteCounter kbytes_out;
+ ByteCounter hit_kbytes_out;
StatHist missSvcTime;
StatHist nearMissSvcTime;
StatHist nearHitSvcTime;
struct {
int requests;
int errors;
- kb_t kbytes_in;
- kb_t kbytes_out;
+ ByteCounter kbytes_in;
+ ByteCounter kbytes_out;
} all , http, ftp, other;
} server;
int hits_recv;
int replies_queued;
int replies_dropped;
- kb_t kbytes_sent;
- kb_t q_kbytes_sent;
- kb_t r_kbytes_sent;
- kb_t kbytes_recv;
- kb_t q_kbytes_recv;
- kb_t r_kbytes_recv;
+ ByteCounter kbytes_sent;
+ ByteCounter q_kbytes_sent;
+ ByteCounter r_kbytes_sent;
+ ByteCounter kbytes_recv;
+ ByteCounter q_kbytes_recv;
+ ByteCounter r_kbytes_recv;
StatHist querySvcTime;
StatHist replySvcTime;
int query_timeouts;
struct {
int times_used;
- kb_t kbytes_sent;
- kb_t kbytes_recv;
- kb_t memory;
+ ByteCounter kbytes_sent;
+ ByteCounter kbytes_recv;
+ ByteCounter memory;
int msgs_sent;
int msgs_recv;
#if USE_CACHE_DIGESTS
extern StatCounters statCounter;
#endif /* STATCOUNTERS_H_ */
+