[jbossnative-commits] JBoss Native SVN: r999 - trunk/sight/native/os/linux.

jbossnative-commits at lists.jboss.org jbossnative-commits at lists.jboss.org
Mon Sep 10 01:51:00 EDT 2007


Author: mladen.turk at jboss.com
Date: 2007-09-10 01:51:00 -0400 (Mon, 10 Sep 2007)
New Revision: 999

Modified:
   trunk/sight/native/os/linux/tcpstat.c
Log:
Use Timeout field for timelen

Modified: trunk/sight/native/os/linux/tcpstat.c
===================================================================
--- trunk/sight/native/os/linux/tcpstat.c	2007-09-10 05:45:27 UTC (rev 998)
+++ trunk/sight/native/os/linux/tcpstat.c	2007-09-10 05:51:00 UTC (rev 999)
@@ -341,7 +341,7 @@
     char ras[128] = "";
     char ssi[32]  = "";
     struct  in_addr ial, iar;
-    jlong cts = 0;
+    jint cts = 0;
     unsigned long rxq, txq, timelen, retr, inode;
     int num, d, uid, timer_run, timeout;
     char more[512];
@@ -401,9 +401,12 @@
             ras[0] = '\0';
     }
     /* TODO: See what's the actual value of timelen */
-    cts = timelen;
+    tmo = timelen;
+    sight_tcpconn_set_tmo(_E, conn, tmo);
+    /* TODO: Search for create timestamp and pid by browsing
+     * the /proc/pid/fd for matching inode
+     */
     sight_tcpconn_set_pid(_E, conn, pid);
-    sight_tcpconn_set_cts(_E, conn, cts);
     sight_tcpconn_set_state(_E, conn, tcp2sstate[state & 0xFF]);
 
     la = sight_new_netaddr_class(_E, _O);




More information about the jbossnative-commits mailing list