dynamo-autoscale 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +5 -0
- data/lib/dynamo-autoscale/dispatcher.rb +5 -0
- data/lib/dynamo-autoscale/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG
CHANGED
@@ -10,6 +10,11 @@ module DynamoAutoscale
|
|
10
10
|
DynamoAutoscale.current_table = table
|
11
11
|
logger.debug "#{time}: Dispatching to #{table.name} with data: #{datum}"
|
12
12
|
|
13
|
+
# If a nil value comes through, we can reasoanbly assume that it should
|
14
|
+
# have been 0.
|
15
|
+
datum[:consumed_writes] = 0 if datum[:consumed_writes].nil?
|
16
|
+
datum[:consumed_reads] = 0 if datum[:consumed_reads].nil?
|
17
|
+
|
13
18
|
if datum[:provisioned_reads] and (datum[:consumed_reads] > datum[:provisioned_reads])
|
14
19
|
lost_reads = datum[:consumed_reads] - datum[:provisioned_reads]
|
15
20
|
|