Skip to content
This repository was archived by the owner on Jan 6, 2026. It is now read-only.

Commit 2372710

Browse files
authored
chore: Change TTFB chart tick from day to month (#30)
* Change TTFB chart tick from day to month * Limit miner RSR summary to past 100 days
1 parent fbb8ef7 commit 2372710

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/data/spark-miner-rsr-summaries.json.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getDateXDaysAgo } from '../utils/date-utils.js'
33

44
const summaries = {}
55

6-
for (let i = 201; i >= 1; i--) {
6+
for (let i = 100; i >= 1; i--) {
77
const dayString = getDateXDaysAgo(i)
88
summaries[dayString] = await jsonFetcher(
99
`https://stats.filspark.com/miners/retrieval-success-rate/summary?from=${dayString}&to=${dayString}`,

src/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,7 @@ const tidy = clone(SparkRetrievalResultCodes).flatMap(({ day, rates }) => {
282282
<div class="card">
283283
${Plot.plot({
284284
title: 'Time to First Byte (ms)',
285-
// TODO: Change tick to month once we have more data
286-
x: { type: 'utc', ticks: 'day' },
285+
x: { type: 'utc', ticks: 'month' },
287286
y: { grid: true, zero: true},
288287
marks: [
289288
Plot.lineY(SparkRetrievalTimes, {

src/provider/[provider].md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ const end = view(Inputs.date({ label: 'End', value: getDateXDaysAgo(1) }))
4242
<div class="card">
4343
${Plot.plot({
4444
title: 'Time to First Byte (ms)',
45-
// TODO: Change tick to month once we have more data
46-
x: { type: 'utc', ticks: 'day' },
45+
x: { type: 'utc', ticks: 'month' },
4746
y: { grid: true, zero: true },
4847
marks: [
4948
Plot.lineY(ttfbData, {

0 commit comments

Comments
 (0)