Mercurial > noffle
diff src/client.c @ 57:84e32c84666b noffle
[svn] add some intermediate variables for easier debugging
in needsMark(). It seems that thread mode is sometimes not working.
author | enz |
---|---|
date | Fri, 12 May 2000 16:47:29 +0100 |
parents | 125d79c9e586 |
children | b4e6f7f96135 |
line wrap: on
line diff
--- a/src/client.c Fri May 12 09:20:00 2000 +0100 +++ b/src/client.c Fri May 12 16:47:29 2000 +0100 @@ -1,7 +1,7 @@ /* client.c - $Id: client.c 60 2000-05-09 22:28:38Z uh1763 $ + $Id: client.c 63 2000-05-12 15:47:29Z enz $ */ #if HAVE_CONFIG_H @@ -627,15 +627,16 @@ static Bool needsMark( const char *ref ) { - Bool done = FALSE; + Bool done = FALSE, interesting; char *p; Str msgId; int stat, len; time_t lastAccess, nowTime; - double limit; + double threadFollowTime, limit, age; nowTime = time( NULL ); - limit = Cfg_threadFollowTime() * 24. * 3600.; + threadFollowTime = (double)Cfg_threadFollowTime(); + limit = threadFollowTime * 24. * 3600.; while ( ! done ) { p = msgId; @@ -655,8 +656,9 @@ { stat = Db_stat( msgId ); lastAccess = Db_lastAccess( msgId ); - if ( ( stat & DB_INTERESTING ) - && difftime( nowTime, lastAccess ) <= limit ) + interesting = ( stat & DB_INTERESTING ); + age = difftime( nowTime, lastAccess ); + if ( interesting && age <= limit ) return TRUE; } }