Skip to content

Commit

Permalink
Merge pull request #1155 from ganey/patch-1
Browse files Browse the repository at this point in the history
Update billing to nearest ms
  • Loading branch information
frozenbonito committed Feb 7, 2021
2 parents 28839d1 + a2c5b1b commit f118f05
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lambda/LambdaFunction.js
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 f118f05

Please sign in to comment.