Skip to content

Commit

Permalink
round-tracker: fix set precision to bigint. #437
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed Oct 18, 2024
1 parent ba375ca commit f76c3a3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions api/lib/round-tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,9 @@ export async function maybeCreateSparkRound (pgClient, {
GREATEST(1,
LEAST(
$5,
$6::int /* previousRound.max_tasks_per_node || BASELINE_TASKS_PER_NODE */
* (
$7::int /* TASKS_EXECUTED_PER_ROUND */
/ $8::int /* previousRound.measurement_count || TASKS_EXECUTED_PER_ROUND */
)
$6::bigint /* previousRound.max_tasks_per_node || BASELINE_TASKS_PER_NODE */
* $7::bigint /* TASKS_EXECUTED_PER_ROUND */
/ $8::bigint /* previousRound.measurement_count || TASKS_EXECUTED_PER_ROUND */
)
)
)
Expand Down

0 comments on commit f76c3a3

Please sign in to comment.