mirror of
https://git.proxmox.com/git/systemd
synced 2026-01-12 09:20:01 +00: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