Skip to content

Commit

Permalink
Update billing to nearest ms
Browse files Browse the repository at this point in the history
  • Loading branch information
ganey authored and michaelganerf committed Jan 7, 2021
1 parent b74f49d commit d8f0be9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lambda/LambdaFunction.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,9 @@ export default class LambdaFunction {
return this.#executionTimeEnded - this.#executionTimeStarted
}

// rounds up to the nearest 100 ms
// round up to the nearest ms
_billedExecutionTimeInMillis() {
return (
ceil((this.#executionTimeEnded - this.#executionTimeStarted) / 100) * 100
)
return ceil(this.#executionTimeEnded - this.#executionTimeStarted)
}

// extractArtifact, loosely based on:
Expand Down

0 comments on commit d8f0be9

Please sign in to comment.