[jbossnative-commits] JBoss Native SVN: r1017 - trunk/sight/examples/org/jboss/sight.

jbossnative-commits at lists.jboss.org jbossnative-commits at lists.jboss.org
Mon Sep 10 12:41:08 EDT 2007


Author: mladen.turk at jboss.com
Date: 2007-09-10 12:41:08 -0400 (Mon, 10 Sep 2007)
New Revision: 1017

Modified:
   trunk/sight/examples/org/jboss/sight/ListProcesses.java
Log:
Opps. This was unintentional

Modified: trunk/sight/examples/org/jboss/sight/ListProcesses.java
===================================================================
--- trunk/sight/examples/org/jboss/sight/ListProcesses.java	2007-09-10 16:37:51 UTC (rev 1016)
+++ trunk/sight/examples/org/jboss/sight/ListProcesses.java	2007-09-10 16:41:08 UTC (rev 1017)
@@ -38,7 +38,6 @@
 
     public ListProcesses()
     {
-        Process x = null;
         try {
             for (Process p : Process.getProcesses()) {
                 User u  = new User(p.UserId);
@@ -48,18 +47,7 @@
                                    " User(" + u.Name + ") Group(" +
                                    g.Name +")" + "\t " +
                                    p.CurrentWorkingDirectory);
-                if (p.Id == 380)
-                   x = p;
             }
-            Thread.sleep(10000);
-            if (x != null) {
-                int i = x.refresh();
-                System.out.println("Process\t[" + x.Id + "] \t" +
-                                   x.State + " : " + " " + i + " " + x.BaseName +
-                                   "\t " +
-                                   x.CurrentWorkingDirectory);
-            }
-
         } catch (Exception e) {
             e.printStackTrace();
         }




More information about the jbossnative-commits mailing list