mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-26 01:46:32 -05:00
Ignore nanoseconds if -N is specified.
This commit is contained in:
parent
d6678db702
commit
dc3b03c4c4
6 changed files with 24 additions and 7 deletions
4
state.c
4
state.c
|
|
@ -902,6 +902,10 @@ void state_read(struct snapraid_state* state)
|
|||
}
|
||||
hash = oathash32(hash, v_mtime_nsec);
|
||||
|
||||
/* ignore nanoseconds if asked to find by name */
|
||||
if (state->find_by_name)
|
||||
v_mtime_nsec = FILE_MTIME_NSEC_INVALID;
|
||||
|
||||
c = sgetc(f);
|
||||
} else {
|
||||
/* use a special value, meaning that we don't have this information */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue