From: Tobias Tschinkowitz Date: Wed, 16 May 2018 11:26:34 +0000 (+0200) Subject: corrected calculation for swap on openbsd X-Git-Url: https://git.xinqibao.xyz/slstatus.git/commitdiff_plain/c1f79d741a160ea17a110ca09b3deb705636ec4a?hp=c1f79d741a160ea17a110ca09b3deb705636ec4a corrected calculation for swap on openbsd The swapctl(2) function fills the swapent struct with 512KB blocks. As we want to display in GB, i just modified the calculation for this to get the expected output. ---