ef5ed36926
- Update to 11.0.4 * Makefile: sysstat init script may sometimes be called rc.sysstat. So use that name when needed. * pidstat: Don't stop if gtime and cgtime fields are unavailable. * Typos fixed in XSD document. * [Peter Schiffer]: Replace spaces with tabs in Makefile.in. * [Peter Schiffer]: Create appropriate directories in DESTDIR if missing. * [Peter Schiffer]: Fixed installation of systemd/cron files on systems w/o systemd. * [Peter Schiffer]: Don't look in weird places for programs during configuration. * [Peter Schiffer]: Portable way to detect 64 bit OS in configure script. * [Steve Kay]: Fix mpstat SCPU alignment output. * Makefile: Call chkconfig only if $(COPY_ONLY) is set to no. * sysstat(5) manual page updated. * NLS updated. - Use scriplets for updating desktop files - Update patches OBS-URL: https://build.opensuse.org/request/show/307574 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysstat?expand=0&rev=59
16 lines
565 B
Diff
16 lines
565 B
Diff
Index: common.h
|
|
===================================================================
|
|
--- common.h.orig
|
|
+++ common.h
|
|
@@ -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];
|