idifference timestamp changes are the same (problem)

12 views
Skip to first unread message

D M

unread,
May 9, 2012, 8:22:14 PM5/9/12
to aff-d...@googlegroups.com
I ran into a problem (Python 2.6 on Ubuntu) where running an idifference against to XML files from iwalk flagged nearly every file as having a changed time (ctime, mtime, atime, crtime) and proceeded to indicate changed xxxxx -> xxxxx where the times were identical.

Speculating that perhaps the times had become floating point and the checks like:

                       if ofi.atime() != fi.atime():

were failing due to floating point roundoff, I changed all the checks (about 8 I think) to be the same form as the print:

                     if ptime(ofi.atime()) != ptime(fi.atime()):

                                          etc.

This resolved the problem, but I'm still not sure why it was occurring in the first place.

Simson Garfinkel

unread,
May 15, 2012, 8:20:09 AM5/15/12
to aff-d...@googlegroups.com, Alex Nelson
Thanks for the. I suspect that the problem you are dealing with is actually a problem with timezones and the lack of an overwrite for the "==" operator. 
--
You received this message because you are subscribed to the Google Groups "aff-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msg/aff-discuss/-/H_HHHZyR0dcJ.
To post to this group, send email to aff-d...@googlegroups.com.
To unsubscribe from this group, send email to aff-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/aff-discuss?hl=en.

Reply all
Reply to author
Forward
0 new messages