about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2017-08-31 13:45:12 -0400
committerJune McEnroe <programble@gmail.com>2017-08-31 13:45:12 -0400
commitcf94e1b5a227b0a64eae2de78884c14b44dada6b (patch)
treef373e66bcdb39a79f2d484d7052d3cd37a74b001
parentAdd quick data file merge tool (diff)
downloadtorus-cf94e1b5a227b0a64eae2de78884c14b44dada6b.tar.gz
torus-cf94e1b5a227b0a64eae2de78884c14b44dada6b.zip
Choose B for tiles with equal modify times
This way newer access counts and times will be preserved.
-rw-r--r--merge.c2
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;
         }