Bug #8587
closed
System information dashboad show only first swap disk/file info
Added by Marcello Silva Coutinho over 6 years ago.
Updated over 6 years ago.
Affected Architecture:
All
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
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
https://github.com/pfsense/pfsense/pull/3950
Forgot to test on systems without more then on swap file.
The code needs more checks
Pushed a fix for the fix.
- Status changed from New to Feedback
- Target version set to 2.4.4
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.
- Status changed from Feedback to Resolved
Also available in: Atom
PDF