Skip to content

Commit

Permalink
fix(rosetta): snippet throughput incorrect (#3145)
Browse files Browse the repository at this point in the history
We were dividing by the total number of snippets, instead of the actually translated ones.



---

By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license].

[Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
  • Loading branch information
rix0rrr authored Nov 9, 2021
1 parent 175759d commit 91418d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jsii-rosetta/lib/commands/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export async function extractSnippets(

const delta = (Date.now() - startTime) / 1000;
logging.info(
`Translated ${translateCount} snippets in ${delta} seconds (${(delta / tablet.count).toPrecision(3)}s/snippet)`,
`Translated ${translateCount} snippets in ${delta} seconds (${(delta / translateCount).toPrecision(3)}s/snippet)`,
);
diagnostics.push(...result.diagnostics);
} else {
Expand Down

0 comments on commit 91418d6

Please sign in to comment.