Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/plugins/ruby/MdmMetricsGenerator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def populatePodReadyPercentageHash
@pod_ready_hash.each { |dim_key, value|
podsNotReady = @pod_not_ready_hash.key?(dim_key) ? @pod_not_ready_hash[dim_key] : 0
totalPods = value + podsNotReady
podsReadyPercentage = (value / totalPods) * 100
podsReadyPercentage = value * 100.0 / totalPods
@pod_ready_percentage_hash[dim_key] = podsReadyPercentage
# Deleting this key value pair from not ready hash,
# so that we can get those dimensions for which there are 100% of the pods in not ready state
Expand Down