Skip to content

Commit

Permalink
Fix alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartquin committed Nov 3, 2014
1 parent 5747c84 commit 70c4b82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/capify-ec2/cloudwatch.rb
Expand Up @@ -8,7 +8,7 @@ class CapifyCloudwatch
# Color is applied if metric exceeds the threshold, KEEP IN ORDER
Colors = {
0 => :green,
50 => :yellow,
70 => :yellow,
90 => :red
}

Expand Down Expand Up @@ -61,7 +61,7 @@ def get_spark_line(values)
if values and values.count > 0
final = values.last.round
bar = values.map { |x| @ticks[(x / 100.0 * scale).floor] }.join
return colorize_output(bar.ljust(10) + " #{final}%", final)
return colorize_output(bar.rjust(13, @ticks.first) + " #{final}%", final)
else
""
end
Expand Down

0 comments on commit 70c4b82

Please sign in to comment.