summaryrefslogtreecommitdiffstats
path: root/Unix-Statgrab-0.03-compile_libstatgrab-0.12.patch
blob: 27787a3925e9a1f1ea473b2116ddf442a33dfc84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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/ ],