Commit a0e4aeb6 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(dump_statistics): Use ldifftime() instead of difftime().

parent 9eccadf0
/*
* $Id: connections.c,v 0.32 1994/02/27 15:45:42 ceder Exp $
* $Id: connections.c,v 0.33 1994/04/04 14:07:57 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -30,7 +30,7 @@
* Created by Willf|r 31/3-90. Mostly written by ceder.
*/
static char *rcsid = "$Id: connections.c,v 0.32 1994/02/27 15:45:42 ceder Exp $";
static char *rcsid = "$Id: connections.c,v 0.33 1994/04/04 14:07:57 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -52,14 +52,12 @@ USE(rcsid);
#include <time.h>
#endif
#endif
#ifndef HAVE_DIFFTIME
# include "tmp-difftime.h"
#endif
#include <sys/socket.h>
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include "ldifftime.h"
#include "misc-types.h"
#include "s-string.h"
#include "kom-types.h"
......@@ -634,7 +632,7 @@ dump_statistics(void)
}
fprintf(fp, "TIME: %s", ctime(&now));
fprintf(fp, "SECONDS: %d\n", (int)difftime(now, last_dump));
fprintf(fp, "SECONDS: %d\n", (int)ldifftime(now, last_dump));
fprintf(fp, "STATISTICS:");
for ( i = 0; i < sizeof(service_statistics) / sizeof(unsigned long); i++)
{
......
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