Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 248836 Details for
Bug 338955
sys-apps/procmeter3-3.5c.ebuild (new package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
files/procmeter3-statfs-overflow.patch
procmeter3-statfs-overflow.patch (text/plain), 938 bytes, created by
Phil Stracchino (Unix Ronin)
on 2010-09-27 21:12:50 UTC
(
hide
)
Description:
files/procmeter3-statfs-overflow.patch
Filename:
MIME Type:
Creator:
Phil Stracchino (Unix Ronin)
Created:
2010-09-27 21:12:50 UTC
Size:
938 bytes
patch
obsolete
>--- modules/df.c.orig 2009-04-21 13:26:58.000000000 -0400 >+++ modules/df.c 2010-09-27 09:35:24.591394992 -0400 >@@ -15,11 +15,11 @@ > > > #include <stdio.h> > #include <stdlib.h> > #include <string.h> >- >+#include <errno.h> > #include <sys/vfs.h> > > #include "procmeter.h" > > /* The interface information. */ >@@ -289,14 +289,21 @@ > { > output->graph_value=0; > strcpy(output->text_value,"not found"); > } > else if(statfs(disk[i/2],&buf)) >- { >- output->graph_value=0; >- strcpy(output->text_value,"statfs error"); >- } >+ { >+ output->graph_value=0; >+ if (errno == EOVERFLOW) >+ { >+ strcpy(output->text_value,"statfs overflow"); >+ } >+ else >+ { >+ strcpy(output->text_value,"statfs error"); >+ } >+ } > else > { > if(i%2) > { > long long avail=(buf.f_bavail>>5)*(buf.f_bsize>>5);
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 Raw
Actions:
View
Attachments on
bug 338955
:
248830
|
248831
|
248833
|
248835
| 248836 |
248837