Commit 50ac1bc9 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(dump_statistics): Don't emit statistics for the dummy request used to

	skip unimplemented requests.  (Bug 390).
parent d5bae2d7
/* /*
* $Id: connections.c,v 0.72 2001/12/28 20:46:30 ceder Exp $ * $Id: connections.c,v 0.73 2002/02/11 21:28:32 ceder Exp $
* Copyright (C) 1991-2000 Lysator Academic Computer Association. * Copyright (C) 1991-2000 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -494,12 +494,13 @@ dump_statistics(void) ...@@ -494,12 +494,13 @@ dump_statistics(void)
fprintf(fp, "TIME: %s", ctime(&current_time)); fprintf(fp, "TIME: %s", ctime(&current_time));
fprintf(fp, "SECONDS: %d\n", (int)ldifftime(current_time, last_dump)); fprintf(fp, "SECONDS: %d\n", (int)ldifftime(current_time, last_dump));
fprintf(fp, "STATISTICS:"); fprintf(fp, "STATISTICS:");
for ( i = 0; (size_t)i < sizeof(service_statistics) / sizeof(unsigned long); i++)
/* The last entry corresponds to the dummy entry that is used to
skip arguments to unimplemented requests. Skip that, since it
contains no useful statistics. */
for (i = 0; i < num_fnc_defs - 1; i++)
{ {
fprintf(fp, " %d:%lu", fprintf(fp, " %d:%lu", fnc_defs[i].function, service_statistics[i]);
fnc_defs[i].function,
service_statistics[i]
);
service_statistics[i]=0; service_statistics[i]=0;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment