Re: Re: Not changed on local files

Gilles Detillieux <[email protected]>
Newsgroups gmane.comp.web.htdig.devel
Message-ID <[email protected]>
Oops!  Yes, of course.  When I wrote !=, I was thinking in terms of
what consists a change, but the return is for the case it's not changed.

According to Lachlan Andrew:
> Greetings Gilles, Wim,
> 
> I think Gilles means "== instead of <=" (not != ).
> 
> Cheers,
> Lachlan
> 
> On Tue, 27 Apr 2004 05:42 am, Gilles Detillieux wrote:
> 
> > Around line 750 in htdig/Document.cc, in version 3.1.6, is this
> > code:
> >
> >     modtime = stat_buf.st_mtime;
> >     if (modtime <= date)
> >         return Document_not_changed;
> >
> > So, if the local file's modified time is than the time in the
> > database (which is 0, i.e. the UNIX epoch - 1 Jan 1970 00:00 UTC
> > for a new entry), it's treated as not changed.  That test should
> > probably be != instead of <=, or there should be an exception made
> > when date == 0.
> 
> -- 
> [email protected]
> ht://Dig developer DownUnder  (http://www.htdig.org)
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
> For a limited time only, get FREE Ground shipping on all orders of $35
> or more. Hurry up and shop folks, this offer expires April 30th!
> http://www.thinkgeek.com/freeshipping/?cpg=12297
> _______________________________________________
> ht://Dig Developer mailing list:
> [email protected]
> List information (subscribe/unsubscribe, etc.)
> https://lists.sourceforge.net/lists/listinfo/htdig-dev
> 


-- 
Gilles R. Detillieux              E-mail: <[email protected]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba  Winnipeg, MB  R3E 3J7  (Canada)


-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
ht://Dig Developer mailing list:
[email protected]
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.