mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Fix filesize is nagative number
This commit is contained in:
2
db.ts
2
db.ts
@@ -302,7 +302,7 @@ export class EhDb {
|
||||
this.#use_ffi = parse_bool(Deno.env.get("DB_USE_FFI") ?? "false");
|
||||
if (this.#use_ffi) {
|
||||
const DB = (await import("./utils/db_ffi.ts")).DbFfi;
|
||||
this.db = new DB(this.#db_path);
|
||||
this.db = new DB(this.#db_path, { int64: true });
|
||||
} else {
|
||||
const DB = (await import("./utils/db_wasm.ts")).DbWasm;
|
||||
this.db = new DB(this.#db_path);
|
||||
|
||||
Reference in New Issue
Block a user