From b554556cc38550249d99891d40b22999f246776d Mon Sep 17 00:00:00 2001 From: Luc Mcgrady Date: Wed, 3 Sep 2025 17:00:45 +0100 Subject: [PATCH] Fix: Wrong denominator --- ts/routes/graphs/simulator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/routes/graphs/simulator.ts b/ts/routes/graphs/simulator.ts index e1c707029..ff3f81880 100644 --- a/ts/routes/graphs/simulator.ts +++ b/ts/routes/graphs/simulator.ts @@ -69,7 +69,7 @@ export function renderWorkloadChart( const subgraph_data = ({ [SimulateWorkloadSubgraph.ratio]: data.map(d => ({ ...d, - y: (60 * 60 * (d.memorized - d.start_memorized)) / d.count, + y: (60 * 60 * (d.memorized - d.start_memorized)) / d.timeCost, })), [SimulateWorkloadSubgraph.time]: data.map(d => ({ ...d, y: d.timeCost / d.learnSpan })), [SimulateWorkloadSubgraph.count]: data.map(d => ({ ...d, y: d.count / d.learnSpan })),