Commit 91b63753 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

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

parent f039db0e
/*
* $Id: dbck-cache.c,v 0.18 1994/01/12 01:35:41 ceder Exp $
* $Id: dbck-cache.c,v 0.19 1994/04/04 14:13:11 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -32,7 +32,7 @@
* Also save time as a time_t instead of a struct tm.
*/
static char *rcsid = "$Id: dbck-cache.c,v 0.18 1994/01/12 01:35:41 ceder Exp $";
static char *rcsid = "$Id: dbck-cache.c,v 0.19 1994/04/04 14:13:11 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -52,9 +52,6 @@ USE(rcsid);
#endif
#include <time.h>
#include <sys/types.h>
#ifndef HAVE_DIFFTIME
# include "tmp-difftime.h"
#endif
#ifdef TIME_SYNC
# include <sys/resource.h>
#endif
......@@ -62,6 +59,7 @@ USE(rcsid);
# include <stdarg.h>
#endif
#include "ldifftime.h"
#include "exp.h"
#include "misc-types.h"
#include "s-string.h"
......@@ -636,11 +634,11 @@ cache_sync(void)
timerdiff(after_text_stats.ru_stime, after_persons.ru_stime),
timerdiff(after_text_masses.ru_stime, after_text_stats.ru_stime),
(u_long)difftime(atm, st),
(u_long)difftime(ac, st),
(u_long)difftime(ap, ac),
(u_long)difftime(ats, ap),
(u_long)difftime(atm, ats),
(u_long)ldifftime(atm, st),
(u_long)ldifftime(ac, st),
(u_long)ldifftime(ap, ac),
(u_long)ldifftime(ats, ap),
(u_long)ldifftime(atm, ats),
after_text_masses.ru_majflt - start.ru_majflt,
after_text_masses.ru_nswap - start.ru_nswap,
......
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