Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:13.2:Update
sysstat
sysstat-8.0.4-pagesize.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sysstat-8.0.4-pagesize.diff of Package sysstat
--- sysstat-11.0.0/common.h 2014-06-12 15:31:57.000000000 -0400 +++ common.h 2014-07-17 22:07:52.571757781 -0400 @@ -140,8 +140,8 @@ * 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];
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