diff options
| author | TheMas3212 <mas3212@gmail.com> | 2023-10-08 02:30:35 +1100 |
|---|---|---|
| committer | TheMas3212 <mas3212@gmail.com> | 2023-10-08 02:30:35 +1100 |
| commit | a4c2f977206664ca5f04a59e301a0d50c1564151 (patch) | |
| tree | 98a0d7919f473218fb765b685ee7ba2eb8f5b39d | |
| parent | 69ff556386e5b4a11b9f719513ea96a32fd01d11 (diff) | |
| download | tasd-js-a4c2f977206664ca5f04a59e301a0d50c1564151.tar.gz tasd-js-a4c2f977206664ca5f04a59e301a0d50c1564151.zip | |
Fix More Bug in TASD.toBuffer
| -rw-r--r-- | src/file.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file.ts b/src/file.ts index 2a7331c..f95c8ff 100644 --- a/src/file.ts +++ b/src/file.ts @@ -30,7 +30,7 @@ export class TASD { const packets = [ header ]; if (this._isDirty) { this.packets = this.packets.filter((packet) => packet.key !== PACKET_TYPES.DUMP_LAST_MODIFIED); - this.packets.push(new DumpLastModifiedPacket(BigInt(Date.now() / 1000))); + this.packets.push(new DumpLastModifiedPacket(BigInt(Math.floor(Date.now() / 1000)))); } for (const packet of this.packets) { packets.push(packet.toBuffer(this.g_keylen)); |
