Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4
xosview
xosview-1.8.3-maxlimit.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xosview-1.8.3-maxlimit.patch of Package xosview
Index: xosview.h =================================================================== --- xosview.h.orig +++ xosview.h @@ -9,10 +9,11 @@ #ifndef _XOSVIEW_H_ #define _XOSVIEW_H_ #define XOSVIEW_H_CVSID "$Id$" +#define BUFFER_SIZE 4096 #include "xwin.h" #include "Xrm.h" // For Xrm resource manager class. /* Take at most n samples per second (default of 10) */ Index: linux/cpumeter.cc =================================================================== --- linux/cpumeter.cc.orig +++ linux/cpumeter.cc @@ -14,11 +14,11 @@ #include <string> #include <sstream> #include <ctype.h> static const char STATFILENAME[] = "/proc/stat"; -#define MAX_PROCSTAT_LENGTH 4096 +#define MAX_PROCSTAT_LENGTH BUFFER_SIZE CPUMeter::CPUMeter(XOSView *parent, const char *cpuID) : FieldMeterGraph( parent, 7, toUpper(cpuID), "US/NI/SY/ID/WA/HI/SI" ) { _lineNum = findLine(cpuID); for ( int i = 0 ; i < 2 ; i++ ) Index: linux/diskmeter.cc =================================================================== --- linux/diskmeter.cc.orig +++ linux/diskmeter.cc @@ -15,11 +15,11 @@ #include <unistd.h> #include <dirent.h> #include <errno.h> -#define MAX_PROCSTAT_LENGTH 2048 +#define MAX_PROCSTAT_LENGTH BUFFER_SIZE DiskMeter::DiskMeter( XOSView *parent, float max ) : FieldMeterGraph( parent, 3, "DISK", "READ/WRITE/IDLE"), _vmstat(false), _statFileName("/proc/stat") { Index: linux/pagemeter.cc =================================================================== --- linux/pagemeter.cc.orig +++ linux/pagemeter.cc @@ -12,11 +12,11 @@ #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> -#define MAX_PROCSTAT_LENGTH 2048 +#define MAX_PROCSTAT_LENGTH BUFFER_SIZE PageMeter::PageMeter( XOSView *parent, float max ) : FieldMeterGraph( parent, 3, "PAGE", "IN/OUT/IDLE" ), _vmstat(false), _statFileName("/proc/stat"){
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor