a6a8697289
- update to 10.2.0 * This version mainly focuses on pidstat, with several bug fixes and the addition of a new option (-v) enabling the user to display the number of threads and file descriptors associated with tasks. - refreshed some of the patches - move the lib64 patching from %prep (overwrites service unit on every quilt setup) OBS-URL: https://build.opensuse.org/request/show/205712 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysstat?expand=0&rev=49
16 lines
639 B
Diff
16 lines
639 B
Diff
Index: common.h
|
|
===================================================================
|
|
--- common.h.orig 2013-09-13 09:01:47.000000000 +0200
|
|
+++ common.h 2013-11-04 13:02:30.115239489 +0100
|
|
@@ -140,8 +140,8 @@ extern unsigned int kb_shift;
|
|
* kB <-> number of pages.
|
|
* Page size depends on machine architecture (4 kB, 8 kB, 16 kB, 64 kB...)
|
|
*/
|
|
-#define KB_TO_PG(k) ((k) >> kb_shift)
|
|
-#define PG_TO_KB(k) ((k) << kb_shift)
|
|
+#define KB_TO_PG(k) ((k) / (getpagesize()/1024) )
|
|
+#define PG_TO_KB(k) ((k) * (getpagesize()/1024) )
|
|
|
|
/* Type of persistent device names used in sar and iostat */
|
|
extern char persistent_name_type[MAX_FILE_LEN];
|