mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-27 06:05:24 +07:00
readahead: make use of util.h's page_size() call
This commit is contained in:
parent
87ce22cc0d
commit
a0bbec1ab0
@ -45,7 +45,6 @@ int main_analyze(const char *pack_path)
|
|||||||
uint32_t b;
|
uint32_t b;
|
||||||
uint32_t c;
|
uint32_t c;
|
||||||
struct stat st;
|
struct stat st;
|
||||||
int pagesize = getpagesize();
|
|
||||||
|
|
||||||
if (!pack_path)
|
if (!pack_path)
|
||||||
pack_path = "/.readahead";
|
pack_path = "/.readahead";
|
||||||
@ -109,7 +108,7 @@ int main_analyze(const char *pack_path)
|
|||||||
if (sections == 0)
|
if (sections == 0)
|
||||||
size = st.st_size;
|
size = st.st_size;
|
||||||
else
|
else
|
||||||
size = pages * pagesize;
|
size = pages * page_size();
|
||||||
|
|
||||||
tsize += size;
|
tsize += size;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user