From 20243a81fb77f941715e983f245840084877bb9d Mon Sep 17 00:00:00 2001 From: Kaede Fujisaki Date: Wed, 11 May 2022 05:06:57 +0900 Subject: [PATCH] Fix order --- server/src/cmd/regenerate-cache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/cmd/regenerate-cache.ts b/server/src/cmd/regenerate-cache.ts index ead1211..a8d36cd 100644 --- a/server/src/cmd/regenerate-cache.ts +++ b/server/src/cmd/regenerate-cache.ts @@ -19,7 +19,7 @@ async function main() { await shelf.regenerateEntityCache(entity); ++processed; const end = performance.now(); - console.log(`Done: ${((beg-end)/1000).toPrecision(2)}sec elapsed.`); + console.log(`Done: ${((end-beg)/1000).toPrecision(2)}sec elapsed.`); } } finally { await repo.close();