mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 20:25:38 +03:00
readahead: fix calculation of percentage
This commit is contained in:
parent
2d938ac75d
commit
047e111bdd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user