- version update to 12.7.5 2023/12/17: Version 12.7.5 - Sebastien Godard (sysstat <at> orange.fr) * [Quan quan Cao]: sar/sadc: Add new metrics pgprom/s and pgdem/s. * sar: Remove %vmeff metric. * sadf: Update various output formats to take into account metrics that have been added or removed. * Update DTD and XSD documents. * Update sar manual page. * sar: Add a cron entry and a new systemd service and timer to rotate daily data file at midnight. * Option -V with sysstat commands also displays environment contents. * [Sam Morris]: Use correct encoding to produce hyphen-minus when rendering man pages. * Add UMASK variable definition to sysstat(5) manual page. * Update non regression tests. * Add --getenv option to commands that didn't have it. * Update README file for Debian-based distros. * Update link to my personal web page in README and manual pages. * NLS: Translations updated. 2023/06/18: Version 12.7.4 - Sebastien Godard (sysstat <at> orange.fr) * Makefile.in: Fix installation error. * Makefile.in: Remove gcc warning displayed in LTO mode. 2023/06/16: Version 12.7.3 - Sebastien Godard (sysstat <at> orange.fr) * sar: Add new option '-x' used to display extended reports. * [Pavel Kopylov]: Fix an overflow which is still possible for some values. * [Jan Kurik]: Fix export of PSI metrics to a PCP archive. * [Lukáš Zaoral]: Tools that take `--dec=X` option should only accept digits. * common.c: Fix an overflow which was still possible for some values. OBS-URL: https://build.opensuse.org/request/show/1179169 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysstat?expand=0&rev=151
16 lines
610 B
Diff
16 lines
610 B
Diff
Index: sysstat-12.7.5/common.h
|
|
===================================================================
|
|
--- sysstat-12.7.5.orig/common.h
|
|
+++ sysstat-12.7.5/common.h
|
|
@@ -191,8 +191,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];
|