Skip to content

Commit

Permalink
Update usage handling (#18)
Browse files Browse the repository at this point in the history
* Use TypeScript and compile to JS on release

* Update usage handling
  • Loading branch information
sbstjn committed Aug 2, 2017
1 parent 2eeb202 commit 5a48a2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class Plugin {
if (config.read) {
resources.push(
// ScaleIn/ScaleOut values are fix to 60% usage
new Policy(service, table, data.read.usage, true, 60, 60, index, stage),
new Policy(service, table, data.read.usage * 100, true, 60, 60, index, stage),
new Target(service, table, data.read.minimum, data.read.maximum, true, index, stage)
)
}
Expand All @@ -100,7 +100,7 @@ class Plugin {
if (config.write) {
resources.push(
// ScaleIn/ScaleOut values are fix to 60% usage
new Policy(service, table, data.write.usage, false, 60, 60, index, stage),
new Policy(service, table, data.write.usage * 100, false, 60, 60, index, stage),
new Target(service, table, data.write.minimum, data.write.maximum, false, index, stage)
)
}
Expand Down

0 comments on commit 5a48a2a

Please sign in to comment.