Updated mcollective.init according to OSCI-658
[packages/precise/mcollective.git] / lib / mcollective / aggregate / result / numeric_result.rb
diff --git a/lib/mcollective/aggregate/result/numeric_result.rb b/lib/mcollective/aggregate/result/numeric_result.rb
new file mode 100644 (file)
index 0000000..ffa77ba
--- /dev/null
@@ -0,0 +1,13 @@
+module MCollective
+  class Aggregate
+    module Result
+      class NumericResult<Base
+        def to_s
+          return "" if @result[:value].nil?
+
+          return @aggregate_format % @result[:value]
+        end
+      end
+    end
+  end
+end