lib/zabbix-ruby-client/plugins/who.rb in zabbix-ruby-client-0.1.2 vs lib/zabbix-ruby-client/plugins/who.rb in zabbix-ruby-client-0.1.3

- old
+ new

@@ -2,18 +2,18 @@ module ZabbixRubyClient module Plugins module Who extend self + extend ZabbixRubyClient::PluginBase def collect(*args) host = args[0] who = get_who if $?.to_i != 0 Log.warn "Are you running on ubuntu ?" return [] end - time = Time.now.to_i back = [] back << "#{host} who[total] #{time} #{who}" return back end