Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
91b63753
Commit
91b63753
authored
Apr 04, 1994
by
Per Cederqvist
Browse files
(cache_sync): Use ldifftime() instead of difftime().
parent
f039db0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/dbck-cache.c
View file @
91b63753
/*
* $Id: dbck-cache.c,v 0.1
8
1994/0
1/12 01:35:4
1 ceder Exp $
* $Id: dbck-cache.c,v 0.1
9
1994/0
4/04 14:13:1
1 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.1
8
1994/0
1/12 01:35:4
1 ceder Exp $"
;
static
char
*
rcsid
=
"$Id: dbck-cache.c,v 0.1
9
1994/0
4/04 14:13:1
1 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
)
l
difftime
(
atm
,
st
),
(
u_long
)
l
difftime
(
ac
,
st
),
(
u_long
)
l
difftime
(
ap
,
ac
),
(
u_long
)
l
difftime
(
ats
,
ap
),
(
u_long
)
l
difftime
(
atm
,
ats
),
after_text_masses
.
ru_majflt
-
start
.
ru_majflt
,
after_text_masses
.
ru_nswap
-
start
.
ru_nswap
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment