chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
journal: estimate data hash table size a bit larger by default
[elogind.git]
/
src
/
readahead
/
readahead-analyze.c
diff --git
a/src/readahead/readahead-analyze.c
b/src/readahead/readahead-analyze.c
index 8f1d7f9c4fa188442c67585c47e88bf0660361df..53892b0cf862bf03a60d1e6348e3de3dfb6c8b53 100644
(file)
--- a/
src/readahead/readahead-analyze.c
+++ b/
src/readahead/readahead-analyze.c
@@
-115,7
+115,7
@@
int main_analyze(const char *pack_path) {
tsize += size;
printf(" %4d%% (%2d) %12ld: %s\n",
- sections ? (int)
(size / st.st_size * 100.0
) : 100,
+ sections ? (int)
(size * 100 / st.st_size
) : 100,
sections ? sections : 1,
(unsigned long)size,
path);