--- projects/libstatgrab/extras/python/statgrab.pyx 2004/02/13 17:53:15 1.7 +++ projects/libstatgrab/extras/python/statgrab.pyx 2004/03/06 22:11:22 1.9 @@ -17,7 +17,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # -# $Id: statgrab.pyx,v 1.7 2004/02/13 17:53:15 tdb Exp $ +# $Id: statgrab.pyx,v 1.9 2004/03/06 22:11:22 tdb Exp $ # ctypedef long time_t @@ -98,6 +98,11 @@ cdef extern from "statgrab.h": char *interface_name long long tx long long rx + long long ipackets + long long opackets + long long ierrors + long long oerrors + long long collisions time_t systime ctypedef enum statgrab_duplex: @@ -109,6 +114,7 @@ cdef extern from "statgrab.h": char *interface_name int speed statgrab_duplex dup + int up ctypedef struct page_stat_t: long long pages_pagein @@ -356,6 +362,11 @@ def py_get_network_stats(): {'interface_name': s.interface_name, 'tx': s.tx, 'rx': s.rx, + 'ipackets': s.ipackets, + 'opackets': s.opackets, + 'ierrors': s.ierrors, + 'oerrors': s.oerrors, + 'collisions': s.collisions, 'systime': s.systime, } )) @@ -374,6 +385,11 @@ def py_get_network_stats_diff(): {'interface_name': s.interface_name, 'tx': s.tx, 'rx': s.rx, + 'ipackets': s.ipackets, + 'opackets': s.opackets, + 'ierrors': s.ierrors, + 'oerrors': s.oerrors, + 'collisions': s.collisions, 'systime': s.systime, } )) @@ -392,6 +408,7 @@ def py_get_network_iface_stats(): {'interface_name': s.interface_name, 'speed': s.speed, 'dup': s.dup, + 'up' : s.up, } )) s = s + 1