-/* $Id: stat.cc,v 1.31 1996/05/01 22:36:38 wessels Exp $ */
+/* $Id: stat.cc,v 1.32 1996/05/01 22:37:13 wessels Exp $ */
/*
* DEBUG: Section 18 stat
float f;
f = squid_curtime - squid_starttime;
storeAppendPrintf(sentry, "{\tConnections per hour:\t%.1f}\n",
- f == 0.0 ? 0.0 :
+ f == 0.0 ? 0.0 :
((ntcpconn + nudpconn) / (f / 3600)));
}
-/* $Id: store.cc,v 1.63 1996/05/01 22:36:39 wessels Exp $ */
+/* $Id: store.cc,v 1.64 1996/05/01 22:37:14 wessels Exp $ */
/*
* DEBUG: Section 20 store
}
#if defined(__STRICT_ANSI__)
-void storeAppendPrintf(StoreEntry *e, char *fmt, ...)
+void storeAppendPrintf(StoreEntry * e, char *fmt,...)
{
- va_list args;
- static char buf[4096];
- va_start(args, fmt);
+ va_list args;
+ static char buf[4096];
+ va_start(args, fmt);
#else
void storeAppendPrintf(va_alist)
- va_dcl
-{
- va_list args;
- StoreEntry *e = NULL;
- char *fmt = NULL;
- static char buf[4096];
- va_start(args);
- e = va_arg(args, StoreEntry *);
- fmt = va_arg(args, char *);
+ va_dcl
+{
+ va_list args;
+ StoreEntry *e = NULL;
+ char *fmt = NULL;
+ static char buf[4096];
+ va_start(args);
+ e = va_arg(args, StoreEntry *);
+ fmt = va_arg(args, char *);
#endif
- buf[0] = '\0';
- vsprintf(buf, fmt, args);
- storeAppend(e, buf, strlen(buf));
- va_end(args);
+ buf[0] = '\0';
+ vsprintf(buf, fmt, args);
+ storeAppend(e, buf, strlen(buf));
+ va_end(args);
}