From e8de73cfbced02d81c749ed3f02971c09bdce843 Mon Sep 17 00:00:00 2001 From: softsimon Date: Tue, 29 Sep 2020 19:38:01 +0700 Subject: [PATCH] Correct timer to get actual time to update bisq market data. --- backend/src/api/bisq/markets.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/api/bisq/markets.ts b/backend/src/api/bisq/markets.ts index d66e56c9a..5f82e6d05 100644 --- a/backend/src/api/bisq/markets.ts +++ b/backend/src/api/bisq/markets.ts @@ -91,9 +91,9 @@ class Bisq { this.tradesLastMtime = tradesMtime; marketsDataUpdated = true; } - const time = new Date().getTime() - start; if (marketsDataUpdated) { bisqMarket.updateCache(); + const time = new Date().getTime() - start; console.log('Bisq market data updated in ' + time + ' ms'); } } catch (e) {