LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File xosview-1.9.2-maxlimit.patch of Package xosview (Project X11:Utilities)

--- xosview.h
+++ xosview.h	2012-02-01 09:14:06.914433620 +0000
@@ -7,6 +7,7 @@
 #ifndef _XOSVIEW_H_
 #define _XOSVIEW_H_
 
+#define BUFFER_SIZE	4096
 #include "xwin.h"
 #include "Xrm.h"  //  For Xrm resource manager class.
 
--- linux/cpumeter.cc
+++ linux/cpumeter.cc	2012-02-01 09:15:16.521934032 +0000
@@ -15,7 +15,7 @@
 #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, 9, toUpper(cpuID), "USR/NICE/SYS/SI/HI/WIO/GST/ST/IDLE" ) {
--- linux/diskmeter.cc
+++ linux/diskmeter.cc	2012-02-01 09:14:59.081934045 +0000
@@ -15,7 +15,7 @@
 #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),
--- linux/pagemeter.cc
+++ linux/pagemeter.cc	2012-02-01 09:14:42.149964689 +0000
@@ -12,7 +12,7 @@
 #include <sys/stat.h>
 #include <unistd.h>
 
-#define MAX_PROCSTAT_LENGTH 2048
+#define MAX_PROCSTAT_LENGTH	BUFFER_SIZE
 
 
 PageMeter::PageMeter( XOSView *parent, float max )