Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Commit 3e132ab

Browse files
Merge pull request #42 from Unity-Technologies/bugfix/timestamp-fix
[pr] Fix Timestamp Comparison
2 parents 5c662b8 + bb868a1 commit 3e132ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

import.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ async function importTransactionFile(filePath, addressString, defaultPort) {
9494
continue;
9595
}
9696

97-
if (program.timestampCheck && stats.mtimeMs !== file.ts * 1000) {
97+
if (program.timestampCheck && Math.trunc(stats.mtimeMs / 1000) !== file.ts) {
9898
warns.push(`${file.path} has been modified, skipping`);
9999
continue;
100100
}

0 commit comments

Comments
 (0)