Masato Taruishi
taru****@users*****
2004年 9月 23日 (木) 17:00:51 JST
=================================================================== RCS file: demo/haviewer/lib/haviewer/haviewer.rb,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- demo/haviewer/lib/haviewer/haviewer.rb 2004/09/22 19:03:19 1.6 +++ demo/haviewer/lib/haviewer/haviewer.rb 2004/09/23 08:00:51 1.7 @@ -22,8 +22,9 @@ def on_refresh_clicked $threads.each do |t| - t.kill + t.exit end + $threads.clear HAViewer::UltraPossumHost.set_conf( UltraPossum::Config.new ) $haview.views.each do |key,view| view.refresh =================================================================== RCS file: demo/haviewer/lib/haviewer/ultrapossum.rb,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- demo/haviewer/lib/haviewer/ultrapossum.rb 2004/09/22 19:03:19 1.11 +++ demo/haviewer/lib/haviewer/ultrapossum.rb 2004/09/23 08:00:51 1.12 @@ -86,7 +86,7 @@ sincebuf = nil snmpget = "snmpget -On -v1 -t 3 -c ultrapossum #{@host} #{status} #{pid} #{since}" - puts snmpget if $DEBUG + $stderr.puts "#{`date`.chomp} #{snmpget}" if $DEBUG buf = `#{snmpget}` buf.each_line do |line| case line