diff options
author | Nathan Kinder <nkinder@redhat.com> | 2005-04-02 00:57:25 +0000 |
---|---|---|
committer | Nathan Kinder <nkinder@redhat.com> | 2005-04-02 00:57:25 +0000 |
commit | 966d152752f79caaa17ceb24908bed593036b561 (patch) | |
tree | fc0d31e0e4b9cfc11c64fd61019756baacabaa26 /ldap/systools | |
parent | 8e62ee61fcb43bf32f8144f665059ca7f073a360 (diff) | |
download | ds-966d152752f79caaa17ceb24908bed593036b561.tar.gz ds-966d152752f79caaa17ceb24908bed593036b561.tar.xz ds-966d152752f79caaa17ceb24908bed593036b561.zip |
Fix swap space reporting on Linux
Diffstat (limited to 'ldap/systools')
-rw-r--r-- | ldap/systools/idsktune.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ldap/systools/idsktune.c b/ldap/systools/idsktune.c index bf0b5358..d9dfd159 100644 --- a/ldap/systools/idsktune.c +++ b/ldap/systools/idsktune.c @@ -1447,7 +1447,7 @@ static void gen_tests (void) struct sysinfo linux_si; if (sysinfo(&linux_si) == 0) { - swap_mb = linux_si.totalswap / 1048576; + swap_mb = linux_si.totalswap * (linux_si.mem_unit / 1024) / 1024; } } #endif |