diff options
author | June McEnroe <programble@gmail.com> | 2017-08-31 13:45:12 -0400 |
---|---|---|
committer | June McEnroe <programble@gmail.com> | 2017-08-31 13:45:12 -0400 |
commit | cf94e1b5a227b0a64eae2de78884c14b44dada6b (patch) | |
tree | f373e66bcdb39a79f2d484d7052d3cd37a74b001 /merge.c | |
parent | Add quick data file merge tool (diff) | |
download | torus-cf94e1b5a227b0a64eae2de78884c14b44dada6b.tar.gz torus-cf94e1b5a227b0a64eae2de78884c14b44dada6b.zip |
Choose B for tiles with equal modify times
This way newer access counts and times will be preserved.
Diffstat (limited to '')
-rw-r--r-- | merge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/merge.c b/merge.c index e0ddea0..26e00dd 100644 --- a/merge.c +++ b/merge.c @@ -90,7 +90,7 @@ int main(int argc, char *argv[]) { if (!lenA || !lenB) errx(EX_IOERR, "different size inputs"); if (tileA.modify == tileB.modify) { - ssize_t lenC = writeAll(c, (char *)&tileA, sizeof(tileA)); + ssize_t lenC = writeAll(c, (char *)&tileB, sizeof(tileB)); if (lenC < 0) err(EX_IOERR, "%s", argv[3]); continue; } |