* DEBUG: section 54 Interprocess Communication
*/
-#include "squid.h"
+#include "squid-old.h"
#include "Store.h"
#include "ipc/ReadWriteLock.h"
{
memset(this, 0, sizeof(*this));
}
-
+
void
Ipc::ReadWriteLockStats::dump(StoreEntry &e) const
{
return;
storeAppendPrintf(&e, "Reading: %9d %6.2f%%\n",
- readable, (100.0 * readable / count));
+ readable, (100.0 * readable / count));
storeAppendPrintf(&e, "Writing: %9d %6.2f%%\n",
- writeable, (100.0 * writeable / count));
+ writeable, (100.0 * writeable / count));
storeAppendPrintf(&e, "Idle: %9d %6.2f%%\n",
- idle, (100.0 * idle / count));
+ idle, (100.0 * idle / count));
if (readers || writers) {
const int locked = readers + writers;
storeAppendPrintf(&e, "Readers: %9d %6.2f%%\n",
- readers, (100.0 * readers / locked));
+ readers, (100.0 * readers / locked));
storeAppendPrintf(&e, "Writers: %9d %6.2f%%\n",
- writers, (100.0 * writers / locked));
+ writers, (100.0 * writers / locked));
}
}