mirror of
https://github.com/ankitects/anki.git
synced 2026-01-09 03:53:55 -05:00
Fix: Wrong denominator
This commit is contained in:
parent
b30e2df201
commit
b554556cc3
1 changed files with 1 additions and 1 deletions
|
|
@ -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 })),
|
||||
|
|
|
|||
Loading…
Reference in a new issue