Skip to content

Commit 658514c

Browse files
authored
fix: correct bug in stats panel date format for "Total Size" stats
1 parent fc4bdc0 commit 658514c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webui/src/components/StatsPanel.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ const StatsPanel = ({ selector }: { selector: OpSelector }) => {
9090
dataKey="totalSizeBytes"
9191
tickFormatter={(v) => formatBytes(v)}
9292
/>
93-
<Tooltip labelFormatter={(v) => formatBytes(v as number)}/>
93+
<Tooltip labelFormatter={(x) => formatDate(x as number)}
94+
formatter={(y) => [formatBytes(y as number), 'Total Size']}/>
9495
<Legend />
9596
<Line
9697
yAxisId="left"

0 commit comments

Comments
 (0)