diff options
author | Martin Baulig <martin@src.gnome.org> | 1998-10-26 10:44:16 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1998-10-26 10:44:16 +0000 |
commit | 13d9120f93a6f713ccc59dd550ca6c08ee765461 (patch) | |
tree | ba637f3ca1c0930bfd9051a40dabe637cfefa9d1 /features.def | |
parent | 1289b92d063f31d7ec3675f0956d86dfcdc63b23 (diff) | |
download | libgtop-13d9120f93a6f713ccc59dd550ca6c08ee765461.tar.gz |
Some systems may not distinguish between input and output bytes/pkts/errs
so we add `_total' fields:
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 */
packets_total, /* GLIBTOP_NETLOAD_PACKETS_TOTAL*/
bytes_in, /* GLIBTOP_NETLOAD_BYTES_IN */
bytes_out, /* GLIBTOP_NETLOAD_BYTES_OUT */
bytes_total, /* GLIBTOP_NETLOAD_BYTES_TOTAL */
errors_in, /* GLIBTOP_NETLOAD_ERRORS_IN */
errors_out, /* GLIBTOP_NETLOAD_ERRORS_OUT */
errors_total, /* GLIBTOP_NETLOAD_ERRORS_TOTAL */
collisions; /* GLIBTOP_NETLOAD_COLLISIONS */
};
Diffstat (limited to 'features.def')
-rw-r--r-- | features.def | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/features.def b/features.def index 188a4370..951b60bd 100644 --- a/features.def +++ b/features.def @@ -18,5 +18,5 @@ const char *|proc_args|ulong(size)|pid_t(pid):unsigned(max_len) glibtop_map_entry *|proc_map|ulong(number,size,total)|pid_t(pid) glibtop_mountentry *|@mountlist|ulong(number,size,total)|int(all_fs) void|@fsusage|ulong(blocks,bfree,bavail,files,ffree)|string|mount_dir -void|netload|ulong(mtu,address,packets_in,packets_out,bytes_in,bytes_out,errors_in,errors_out,collisions)|string|interface +void|netload|ulong(mtu,address,packets_in,packets_out,packets_total,bytes_in,bytes_out,bytes_total,errors_in,errors_out,errors_total,collisions)|string|interface void|ppp|ulong(state,bytes_in,bytes_out)|ushort(device) |