diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-01 13:41:04 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-01 14:04:51 +0100 |
commit | fb68e1b7187e66884ae5a06e692d3553fbef4f1c (patch) | |
tree | 954bb21a8a056caf2c4960ff4e294459cb87dbb3 /utils | |
parent | cad6644846545fc27ef8fe8906f7b024a612ca01 (diff) | |
download | hurd-fb68e1b7187e66884ae5a06e692d3553fbef4f1c.tar.gz hurd-fb68e1b7187e66884ae5a06e692d3553fbef4f1c.tar.bz2 hurd-fb68e1b7187e66884ae5a06e692d3553fbef4f1c.zip |
vmstat: Support 64bit memory size
Diffstat (limited to 'utils')
-rw-r--r-- | utils/vmstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/vmstat.c b/utils/vmstat.c index bdd1d812..684a5917 100644 --- a/utils/vmstat.c +++ b/utils/vmstat.c @@ -228,8 +228,8 @@ static val_t get_size (struct vm_state *state, const struct field *field) { return - (state->vmstats.free_count + state->vmstats.active_count - + state->vmstats.inactive_count + state->vmstats.wire_count) + ((val_t) (state->vmstats.free_count + state->vmstats.active_count + + state->vmstats.inactive_count + state->vmstats.wire_count)) * state->vmstats.pagesize; } |