diff options
Diffstat (limited to 'src/routes')
| -rw-r--r-- | src/routes/auctionprices.svelte | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/routes/auctionprices.svelte b/src/routes/auctionprices.svelte index 68ce00e..e778330 100644 --- a/src/routes/auctionprices.svelte +++ b/src/routes/auctionprices.svelte @@ -97,6 +97,19 @@ </b> </p> {/if} + {#if item.auctions.length >= 2} + <p> + Frequency: + <b> + {parseFloat( + ( + (24 * 60 * 60) / + ((Date.now() / 1000 - item.auctions[0].ts) / item.auctions.length) + ).toPrecision(2) + ).toLocaleString()}/day + </b> + </p> + {/if} </div> <div class="item-scatterplot"> <AuctionPriceScatterplot {item} bind:currentlyPreviewedAuction /> |
