From 4536d34b9247e137c990826cc5f8ec857fc2464d Mon Sep 17 00:00:00 2001 From: Sirttas Date: Fri, 6 Oct 2023 09:05:33 +0200 Subject: [PATCH] fix score --- src/market/scan/ScanResultTable.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/market/scan/ScanResultTable.vue b/src/market/scan/ScanResultTable.vue index 8c2c5f0..9da6c21 100644 --- a/src/market/scan/ScanResultTable.vue +++ b/src/market/scan/ScanResultTable.vue @@ -50,7 +50,7 @@ const { sortedArray, headerProps } = useSort(computed(() => props.items .map(r => { const quartils = getHistoryQuartils(r.history, days.value); const profit = quartils.q1 === 0 || quartils.q3 === 0 ? 0 : marketTaxStore.calculateProfit(quartils.q1, quartils.q3); - const score = profit <= 0 ? 0 : Math.sqrt(quartils.totalVolume * r.sell * profit / (days.value * Math.max(1, r.orderCount))); + const score = profit <= 0 ? 0 : Math.sqrt(quartils.totalVolume * quartils.q3 * profit / (days.value * Math.max(1, r.orderCount))); return { type: r.type,