Skip to content

Commit 1a65983

Browse files
committed
Fixed build times being off by a factor of 1,000.
1 parent 380afd8 commit 1a65983

File tree

1 file changed

+3
-3
lines changed
  • src/obsidian-build-tools

1 file changed

+3
-3
lines changed

src/obsidian-build-tools/lib.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ export function defineScriptFileBuilder(input: string, output: string, options:
544544

545545
await bundle.close();
546546

547-
const duration = Math.floor((Date.now() - start) / 1000);
547+
const duration = Math.floor(Date.now() - start);
548548

549549
return {
550550
source: config.input as string,
@@ -658,7 +658,7 @@ export async function buildStylesheet(configuration: StylesheetConfiguration): P
658658
await writeFile(path.join(configuration.copy, path.basename(configuration.destination)), css);
659659
}
660660

661-
const duration = Math.floor((Date.now() - start) / 1000);
661+
const duration = Math.floor(Date.now() - start);
662662

663663
return {
664664
source: configuration.source,
@@ -763,7 +763,7 @@ export async function buildStaticFile(configuration: StaticFileConfiguration): P
763763
await writeFile(path.join(configuration.copy, path.basename(configuration.destination)), data as unknown as Uint8Array);
764764
}
765765

766-
const duration = Math.floor((Date.now() - start) / 1000);
766+
const duration = Math.floor(Date.now() - start);
767767

768768
return {
769769
source: configuration.source,

0 commit comments

Comments
 (0)