Bug #8587
closedSystem information dashboad show only first swap disk/file info
0%
Description
On systems that swap was undersized and a another swap file had to be added, dashboard fails to show right usage % and alerts only the first swap device %
The fix is really simple. I'm opening it just to refer it on github pull request
Files
Updated by Marcello Silva Coutinho over 6 years ago
Marcello Silva Coutinho wrote:
On systems that swap was undersized and a another swap file had to be added, dashboard fails to show right usage % and alerts only the first swap device %
The fix is really simple. I'm opening it just to refer it on github pull request
Updated by Marcello Silva Coutinho over 6 years ago
Forgot to test on systems without more then on swap file.
The code needs more checks
Pushed a fix for the fix.
Updated by Marcello Silva Coutinho over 6 years ago
- File two_swaps.PNG two_swaps.PNG added
Updated by Jim Pingle over 6 years ago
- Status changed from New to Feedback
- Target version set to 2.4.4
PR has been merged
Updated by Anonymous over 6 years ago
On 2.4.4.a.20180707.0234, multiple swap files are accurately reported. On the test system with 978M swap after install, and 8192M of swap added after, the swapinfo output and the dashboard reports the swap usage as
[2.4.4-DEVELOPMENT][admin@pfSense.localdomain]/root: swapinfo -kh Device 1K-blocks Used Avail Capacity /dev/gptid/7b7e5d44-8213-11e8-9 1001548 0B 978M 0% /dev/md42 8388608 0B 8.0G 0% Total 9390156 0B 9.0G 0%
and
0% of 9170 MiB
respectively, which is correct.