From bb868a1b9e11d6be701d732b0cae90ff0c72e38e Mon Sep 17 00:00:00 2001 From: Brett Kercher Date: Wed, 30 May 2018 09:58:28 -0500 Subject: [PATCH] Round timestamps to the nearest second to avoid inconsistent timestamp comparisons --- import.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/import.js b/import.js index 5995e95..a731cf0 100644 --- a/import.js +++ b/import.js @@ -94,7 +94,7 @@ async function importTransactionFile(filePath, addressString, defaultPort) { continue; } - if (program.timestampCheck && stats.mtimeMs !== file.ts * 1000) { + if (program.timestampCheck && Math.trunc(stats.mtimeMs / 1000) !== file.ts) { warns.push(`${file.path} has been modified, skipping`); continue; }