Merge pull request #893 from brian-spackman/fix-fractional-mtime-on-linux

fix: truncate sub-millisecond CLI mtimes to prevent mobile crash
This commit is contained in:
vorotamoroz authored and GitHub committed 2026-05-13 19:12:56 +09:00
commit ad71355859
4 files changed
+12 -12

No files matched your search

+4 -4
View File
@@ -73,8 +73,8 @@ export class NodeVaultAdapter implements IVaultAdapter<NodeFile> {
path: p as any,
stat: {
size: stat.size,
mtime: stat.mtimeMs,
ctime: stat.ctimeMs,
mtime: Math.floor(stat.mtimeMs),
ctime: Math.floor(stat.ctimeMs),
type: "file",
},
};
@@ -96,8 +96,8 @@ export class NodeVaultAdapter implements IVaultAdapter<NodeFile> {
path: p as any,
stat: {
size: stat.size,
mtime: stat.mtimeMs,
ctime: stat.ctimeMs,
mtime: Math.floor(stat.mtimeMs),
ctime: Math.floor(stat.ctimeMs),
type: "file",
},
};