From a9cd258af8a968a5d4dd5e464d37ba1e5647236a Mon Sep 17 00:00:00 2001 From: Sirttas Date: Mon, 2 Oct 2023 22:07:09 +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 938c126..8c2c5f0 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 / Math.max(1, r.orderCount)); + const score = profit <= 0 ? 0 : Math.sqrt(quartils.totalVolume * r.sell * profit / (days.value * Math.max(1, r.orderCount))); return { type: r.type,