lib/riemann/babbler/support/plugin_helpers.rb in riemann-babbler-1.0.5.7 vs lib/riemann/babbler/support/plugin_helpers.rb in riemann-babbler-1.0.6
- old
+ new
@@ -72,7 +72,12 @@
rescue Timeout::Error
helper_error("Get from url: #{url}, timeout error")
end
end
+ # unix timestamp
+ def unixnow
+ Time.now.to_i
+ end
+
end
end