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

(garb_text): Extract the seconds from the current_time.

parent 1ffe212b
/*
* $Id: text-garb.c,v 0.43 2003/07/12 00:19:34 ceder Exp $
* $Id: text-garb.c,v 0.44 2003/07/12 21:30:09 ceder Exp $
* Copyright (C) 1991-1995, 1997-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -144,7 +144,7 @@ garb_text(void)
return FALSE;
}
age = ldifftime(current_time, text_s->creation_time );
age = ldifftime(current_time.tv_sec, text_s->creation_time);
if ( text_s->no_of_marks > 0 || age < 24 * 3600 )
{
......@@ -196,7 +196,7 @@ garb_text(void)
break;
case sent_at:
if (ldifftime(current_time, misc->datum.sent_at) < limit)
if (ldifftime(current_time.tv_sec, misc->datum.sent_at) < limit)
{
tell_cache_garb_text(0);
return FALSE;
......
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