summaryrefslogtreecommitdiffstats
path: root/Unix-Statgrab-0.03-compile_libstatgrab-0.12.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Unix-Statgrab-0.03-compile_libstatgrab-0.12.patch')
-rw-r--r--Unix-Statgrab-0.03-compile_libstatgrab-0.12.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/Unix-Statgrab-0.03-compile_libstatgrab-0.12.patch b/Unix-Statgrab-0.03-compile_libstatgrab-0.12.patch
new file mode 100644
index 0000000..27787a3
--- /dev/null
+++ b/Unix-Statgrab-0.03-compile_libstatgrab-0.12.patch
@@ -0,0 +1,43 @@
+diff -uNr Unix-Statgrab-0.03/lib/Unix/Statgrab.pm Unix-Statgrab-0.03.of/lib/Unix/Statgrab.pm
+--- Unix-Statgrab-0.03/lib/Unix/Statgrab.pm 2005-04-03 07:45:44.000000000 +0200
++++ Unix-Statgrab-0.03.of/lib/Unix/Statgrab.pm 2005-08-10 11:15:20.000000000 +0200
+@@ -479,7 +479,7 @@
+
+ The speed of the interface, in megabits/sec
+
+-=item * B<dup($if)>
++=item * B<duplex($if)>
+
+ One of C<SG_IFACE_DUPLEX_FULL>, C<SG_IFACE_DUPLEX_HALF> and C<SG_IFACE_DUPLEX_UNKNOWN>. Unknown could mean that duplex hasn't been negotiated yet.
+
+diff -uNr Unix-Statgrab-0.03/Statgrab.xs Unix-Statgrab-0.03.of/Statgrab.xs
+--- Unix-Statgrab-0.03/Statgrab.xs 2005-04-03 07:32:41.000000000 +0200
++++ Unix-Statgrab-0.03.of/Statgrab.xs 2005-08-10 11:12:40.000000000 +0200
+@@ -1113,13 +1113,13 @@
+ RETVAL
+
+ IV
+-dup (self, num = 0)
++duplex (self, num = 0)
+ sg_network_iface_stats_my *self;
+ int num;
+ CODE:
+ if (num < 0 || num >= self->nifs)
+ XSRETURN_UNDEF;
+- RETVAL = IF(num)->dup;
++ RETVAL = IF(num)->duplex;
+ OUTPUT:
+ RETVAL
+
+diff -uNr Unix-Statgrab-0.03/t/Unix-Statgrab.t Unix-Statgrab-0.03.of/t/Unix-Statgrab.t
+--- Unix-Statgrab-0.03/t/Unix-Statgrab.t 2005-04-03 07:35:08.000000000 +0200
++++ Unix-Statgrab-0.03.of/t/Unix-Statgrab.t 2005-08-10 11:15:28.000000000 +0200
+@@ -50,7 +50,7 @@
+ ierrors oerrors collisions systime/ ],
+ get_network_io_stats_diff => [ qw/num_ifaces interface_name tx rx ipackets opackets
+ ierrors oerrors collisions systime/ ],
+- get_network_iface_stats => [ qw/num_ifaces interface_name speed dup up/ ],
++ get_network_iface_stats => [ qw/num_ifaces interface_name speed duplex up/ ],
+ get_page_stats => [ qw/pages_pagein pages_pageout systime/ ],
+ get_page_stats_diff => [ qw/pages_pagein pages_pageout systime/ ],
+ get_user_stats => [ qw/num_entries name_list/ ],