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
05f5bece
Commit
05f5bece
authored
Apr 04, 1994
by
Per Cederqvist
Browse files
text-garb.c (garb_text): Use ldifftime() instead of difftime().
parent
4e1b1cb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/text-garb.c
View file @
05f5bece
/*
* $Id: text-garb.c,v 0.1
6
1994/0
2/19 04:28:04
ceder Exp $
* $Id: text-garb.c,v 0.1
7
1994/0
4/04 15:31:20
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -28,20 +28,18 @@
* Author: Per Cederqvist.
*/
static
char
*
rcsid
=
"$Id: text-garb.c,v 0.1
6
1994/0
2/19 04:28:04
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: text-garb.c,v 0.1
7
1994/0
4/04 15:31:20
ceder Exp $"
;
#include
"rcs.h"
USE
(
rcsid
);
#include
<stdio.h>
#include
<time.h>
#include
<sys/types.h>
#ifndef HAVE_DIFFTIME
# include "tmp-difftime.h"
#endif
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include
"ldifftime.h"
#include
"s-string.h"
#include
"kom-types.h"
#include
"text-garb.h"
...
...
@@ -111,7 +109,7 @@ garb_text(void)
if
(
last_checked
==
0
)
{
if
(
last_start
!=
NO_TIME
&&
difftime
(
time
(
NULL
),
last_start
)
<
param
.
garb_interval
*
60
)
&&
l
difftime
(
time
(
NULL
),
last_start
)
<
param
.
garb_interval
*
60
)
{
return
TRUE
;
}
...
...
@@ -138,7 +136,7 @@ garb_text(void)
return
FALSE
;
}
age
=
difftime
(
time
(
NULL
),
text_s
->
creation_time
);
age
=
l
difftime
(
time
(
NULL
),
text_s
->
creation_time
);
if
(
text_s
->
no_of_marks
>
0
||
age
<
24
*
3600
)
{
...
...
@@ -193,7 +191,7 @@ garb_text(void)
break
;
case
sent_at
:
if
(
difftime
(
time
(
NULL
),
misc
->
datum
.
sent_at
)
if
(
l
difftime
(
time
(
NULL
),
misc
->
datum
.
sent_at
)
<
limit
)
{
tell_cache_garb_text
(
0
);
...
...
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