Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 149394 Details for
Bug 115806
rpc.rstatd-4.0.1.ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
rpc.rstatd-netstats.patch
rpc.rstatd-netstats.patch (text/plain), 851 bytes, created by
Martin Mokrejš
on 2008-04-11 12:01:00 UTC
(
hide
)
Description:
rpc.rstatd-netstats.patch
Filename:
MIME Type:
Creator:
Martin Mokrejš
Created:
2008-04-11 12:01:00 UTC
Size:
851 bytes
patch
obsolete
>--- rpc.rstatd-4.0.1/getdata.c 2005-12-07 09:11:04.000000000 +0000 >+++ rpc.rstatd-4.0.1-fixed/getdata.c 2006-12-15 13:34:46.000000000 +0000 >@@ -201,6 +201,12 @@ > fgets(buf, sizeof(buf), fp); > fgets(buf, sizeof(buf), fp); > >+ stats->if_ipackets = 0; >+ stats->if_ierrors = 0; >+ stats->if_opackets = 0; >+ stats->if_oerrors = 0; >+ stats->if_collisions = 0; >+ > /* add up data from all interfaces besides the loopback interface. > If interfaces where specified on the commandline take only these. */ > while (fgets(buf, sizeof(buf), fp)) { >@@ -241,11 +247,6 @@ > } > } > /* skip lo interfaces */ >- stats->if_ipackets = 0; >- stats->if_ierrors = 0; >- stats->if_opackets = 0; >- stats->if_oerrors = 0; >- stats->if_collisions = 0; > if ((ninterfaces == 0 && strcmp(iface, "lo") != 0) || > found_interface) { > stats->if_ipackets += if_ipackets;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 115806
:
93264
|
93265
|
149388
|
149390
|
149392
|
149393
| 149394 |
149396