Permalink
Browse files

Default fix for units, type, and slope.

They were not taking on their values properly.
  • Loading branch information...
1 parent 12e07b2 commit 38e40d419806dacded8052d3c38b667feb973b8d @seryl seryl committed Dec 1, 2011
Showing with 5 additions and 5 deletions.
  1. +1 −1 lib/fakelia.rb
  2. +4 −4 lib/fakelia/client.rb
View
@@ -8,7 +8,7 @@
# Long running ganglia client/forwarder for windows and OSX.
module Fakelia
# Gem Version
- VERSION = '1.0.1'
+ VERSION = '1.0.2'
# Empty module to fill with script modules
module Scripts
View
@@ -12,8 +12,8 @@ module ClassMethods
# @note units for the value, e.g. 'kb/sec'
#
# @return The units displayed on the graph.
- def units(str=nil)
- @units ||= 'req/min' or str
+ def units(str='req/min')
+ @units ||= str
end
# The value type to use for the graph.
@@ -24,8 +24,8 @@ def units(str=nil)
# string, int8, uint8, int16, uint16, int32, uint32, float, double
#
# @return The ganglia unit type.
- def type(str=nil)
- @type ||= 'uint8' or str
+ def type(str='unit8')
+ @type ||= str
end
# The maximum time in seconds between gmetric calls.

0 comments on commit 38e40d4

Please sign in to comment.