Skip to content

Commit

Permalink
Allow for any suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
eric committed Feb 25, 2014
1 parent 1c8a35e commit b0af53e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/metriks/reporter/proc_title.rb
Expand Up @@ -52,13 +52,7 @@ def generate_title
val = block.call
val = "%.#{@rounding}f" % val if val.is_a?(Float)

if suffix == '%'
"#{name}: #{val}#{suffix}"
elsif suffix
"#{name}: #{val}/#{suffix}"
else
"#{name}: #{val}"
end
"#{name}: #{val}#{suffix}"
end.join(' ')
end
end
Expand Down

0 comments on commit b0af53e

Please sign in to comment.