[Ultrapossum-cvs 217] demo/haviewer 1.9,1.10,haviewer.rb

Back to archive index

Masato Taruishi taru****@sourc*****
2004年 6月 23日 (水) 18:16:51 JST


===================================================================
RCS file: demo/haviewer/haviewer.rb,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- demo/haviewer/haviewer.rb	2004/06/23 06:06:08	1.9
+++ demo/haviewer/haviewer.rb	2004/06/23 09:16:51	1.10
@@ -9,12 +9,7 @@
 
 class HAViewer
 
-  Column = ["S", "Host", "Type", "Status", "Pid", "Since" ]
   Hosts = []
-  OID = "private.12345"  # .2.101.1"
-  OID_STATUS = OID + ".2.101.1"
-  OID_PID = OID + ".3.101.1"
-  OID_SINCE = OID + ".4.101.1"
 
   Green = "#00FF00"
   Yellow = "#FFFF00"
@@ -67,6 +62,12 @@
   end
 
   class Host
+
+    OID = "private.12345"  # .2.101.1"
+    OID_STATUS = OID + ".2.101.1"
+    OID_PID = OID + ".3.101.1"
+    OID_SINCE = OID + ".4.101.1"
+
     def initialize( host, type )
       super();
       @host = host;
@@ -119,6 +120,8 @@
   module View
 
     class UltraPossum
+    
+      Column = ["S", "Host", "Type", "Status", "Pid", "Since" ]
 
       def initialize
         @list = Gtk::ListStore.new( String, String, String, String, String, String)
@@ -242,6 +245,7 @@
 
 h = HAViewer.new('haviewer.glade')
 h.set_view( HAViewer::View::UltraPossum.new )
+h.update
 Gtk.timeout_add(5000) {
   h.update
   true



Ultrapossum-cvs メーリングリストの案内
Back to archive index