summaryrefslogtreecommitdiff
path: root/src/readahead/readahead-analyze.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-06-21 23:56:03 +0200
committerLennart Poettering <lennart@poettering.net>2012-06-21 23:56:03 +0200
commita0bbec1ab0493963bacb5364304fa57afbd14277 (patch)
tree9dd22cd3bdeb54c4f0cce3e6efc7bb19d21e6bc9 /src/readahead/readahead-analyze.c
parent87ce22cc0d097d9cd0297d0141eadba6c573c299 (diff)
readahead: make use of util.h's page_size() call
Diffstat (limited to 'src/readahead/readahead-analyze.c')
-rw-r--r--src/readahead/readahead-analyze.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/readahead/readahead-analyze.c b/src/readahead/readahead-analyze.c
index 5a5b9176d0..9c328a5f58 100644
--- a/src/readahead/readahead-analyze.c
+++ b/src/readahead/readahead-analyze.c
@@ -45,7 +45,6 @@ int main_analyze(const char *pack_path)
uint32_t b;
uint32_t c;
struct stat st;
- int pagesize = getpagesize();
if (!pack_path)
pack_path = "/.readahead";
@@ -109,7 +108,7 @@ int main_analyze(const char *pack_path)
if (sections == 0)
size = st.st_size;
else
- size = pages * pagesize;
+ size = pages * page_size();
tsize += size;