/*
- * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+ * 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.
#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