Commit 05f5bece authored by Per Cederqvist's avatar Per Cederqvist
Browse files

text-garb.c (garb_text): Use ldifftime() instead of difftime().

parent 4e1b1cb8
/*
* $Id: text-garb.c,v 0.16 1994/02/19 04:28:04 ceder Exp $
* $Id: text-garb.c,v 0.17 1994/04/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.16 1994/02/19 04:28:04 ceder Exp $";
static char *rcsid = "$Id: text-garb.c,v 0.17 1994/04/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 )
&& ldifftime(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 = ldifftime( 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 ( ldifftime ( time(NULL), misc->datum.sent_at )
< limit )
{
tell_cache_garb_text(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