summaryrefslogtreecommitdiff
path: root/examples/netload.c
Commit message (Collapse)AuthorAgeFilesLines
* Try to fix all format flags in pprint example.Benoît Dejean2018-03-071-12/+12
|
* Fix signedness issue when printing HW address.Benoit Dejean2015-07-151-1/+1
|
* Update old FSF address.Robert Roth2014-08-201-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=721514
* Removed noisy $Id$.Benoît Dejean2007-02-191-2/+0
| | | | | | | | | | 2007-02-20 Benoît Dejean <benoit@placenet.org> * *: Removed noisy $Id$. svn path=/trunk/; revision=2558
* remove unused file.James Henstridge2005-12-121-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-12-12 James Henstridge <james@jamesh.id.au> * doc/auto-macros.texi.in: remove unused file. * doc/libgtop2.texi: don't include auto-macros.texi. * doc/Makefile.am: don't build auto-macros.texi, since none of its macros are used in the documentation any more. * include/glibtop/global.h: don't include <config.h> from headers. * .../*.c: make sure <config.h> is the first thing included. * acinclude.m4: m4_include() libgtop-sysdeps.m4 rather than inlining it. * acinclude.m4, libgtop-sysdeps.m4: use third argument to AC_DEFINE() to set the comment. * configure.in: modernise a bit. * acconfig.h: remove file, since it is deprecated * autogen.sh: require automake 1.9 instead of 1.4.
* s/glibtop_error/g_error/gBenoît Dejean2004-12-231-1/+1
| | | | | * netload.c: (main): * procmap.c: (main): s/glibtop_error/g_error/g
* Updated.Benoît Dejean2004-11-151-30/+64
| | | | * netload.c: (hwaddress_format_for_display), (main): Updated.
* whitespace clean up.Benoît Dejean2004-06-091-2/+2
| | | | * *.{c,h} : whitespace clean up.
* Added missing #include. Converted to UTF-8.Benoît Dejean2004-05-281-0/+2
| | | | | * examples/*: Added missing #include. * ChangeLog: Converted to UTF-8.
* - fixed compilationBastien Nocera2003-10-201-1/+0
|
* - replace all the xmalloc crap by glib memory management functionsBastien Nocera2003-10-201-4/+4
|
* Reverted libgtop changes. It's a common module and I should not modify it.Carlos Perelló Marín2003-10-191-0/+125
| | | | | | | | 2003-10-19 Carlos Perelló Marín <carlos@gnome.org> * support/*: Reverted libgtop changes. It's a common module and I should not modify it. * Added/removed files. Now the move should be done.
* The LibGTop examples have been moved into their own top-level moduleMartin Baulig1999-10-241-125/+0
| | | | | | | | | | | | 1999-10-24 Martin Baulig <martin@home-of-linux.org> The LibGTop examples have been moved into their own top-level module libgtop-examples. * examples/*: Removed. * configure.in: Removed all checks for the examples. * libgtop-sysdeps.m4: Removed --with-libgtop-examples parameter. * Makefile.am: Removed examples from the subdir list.
* Fixed all warnings.Martin Baulig1999-07-301-1/+1
|
* Set the copyright of LibGTop to the GNU General Public License.Martin Baulig1999-02-231-7/+7
| | | | | | | | | 1999-02-22 Martin Baulig <martin@home-of-linux.org> Set the copyright of LibGTop to the GNU General Public License. * copyright.txt: Set the year to 1998-99 and pretty-format it a little bit. Same in all C source and header files.
* Include a copy of the GNU Library General Public License here.Martin Baulig1999-02-221-13/+15
| | | | | | | | | | 1999-02-22 Martin Baulig <martin@home-of-linux.org> * COPYING.LIB: Include a copy of the GNU Library General Public License here. * copyright.txt: Set the year to 1998-99 and pretty-format it a little bit. Same in all C source and header files.
* *** empty log message ***Martin Baulig1998-11-221-2/+2
|
* Print address first and then the subnet.Martin Baulig1998-11-221-2/+2
|
* Call inet_ntoa () to get address and subnet in quatted dot notation (likeMartin Baulig1998-11-221-4/+18
| | | | | | | | 1998-11-22 Martin Baulig <baulig@taurus.uni-trier.de> * netload.c: Call inet_ntoa () to get address and subnet in quatted dot notation (like 136.199.14.201) and not just as a number (like 0xc90ec788).
* More network load stuff.Martin Baulig1998-10-261-3/+22
|
* Added new features to get network load:Martin Baulig1998-10-261-0/+90
typedef struct _glibtop_netload glibtop_netload; struct _glibtop_netload { u_int64_t flags, mtu, /* GLIBTOP_NETLOAD_MTU */ address, /* GLIBTOP_NETLOAD_ADDRESS */ packets_in, /* GLIBTOP_NETLOAD_PACKETS_IN */ packets_out, /* GLIBTOP_NETLOAD_PACKETS_OUT */ bytes_in, /* GLIBTOP_NETLOAD_BYTES_IN */ bytes_out, /* GLIBTOP_NETLOAD_BYTES_OUT */ errors_in, /* GLIBTOP_NETLOAD_ERRORS_IN */ errors_out, /* GLIBTOP_NETLOAD_ERRORS_OUT */ collisions; /* GLIBTOP_NETLOAD_COLLISIONS */ }; Returns network load of the given interface, it is specified as string like `isppp' or `ippp0': extern void glibtop_get_netload_l __P((glibtop *, glibtop_netload *, const char *));