/*
- * $Id$
- *
- * DEBUG: section 20 Storage Manager Statistics
+ * Copyright (C) 1996-2018 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.
*/
-#include "config.h"
-#include "protos.h" /* for xmemset only */
-#include "StoreStats.h"
+/* DEBUG: section 20 Storage Manager Statistics */
+#include "squid.h"
+#include "StoreStats.h"
+#include "tools.h"
/* StoreInfoStats */
StoreInfoStats::StoreInfoStats()
{
- xmemset(this, 0, sizeof(*this));
+ memset(this, 0, sizeof(*this));
}
StoreInfoStats &
StoreInfoStats::operator +=(const StoreInfoStats &stats)
-{
+{
swap.size += stats.swap.size;
swap.capacity += stats.swap.capacity;
swap.count += stats.swap.count;
return *this;
}
-
-
/* StoreIoStats */
StoreIoStats::StoreIoStats()
{
- xmemset(this, 0, sizeof(*this));
+ memset(this, 0, sizeof(*this));
}