diff options
author | Renato Botelho <renato@netgate.com> | 2015-11-06 13:39:12 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-11-06 13:39:12 -0200 |
commit | 4fa256df20e1dc91958345a29a8a6269be3ebe14 (patch) | |
tree | 7f310216244295f1742f273983fafe91b150d849 /src/usr | |
parent | 77d69dadc61cd4607b361080dff3dad6da5450a3 (diff) | |
parent | 612d0fb365c873c97ca0bde23bd252e60ec7cbae (diff) | |
download | pfsense-4fa256df20e1dc91958345a29a8a6269be3ebe14.zip pfsense-4fa256df20e1dc91958345a29a8a6269be3ebe14.tar.gz |
Merge pull request #2035 from phil-davis/patch-3
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/local/www/diag_nanobsd.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/usr/local/www/diag_nanobsd.php b/src/usr/local/www/diag_nanobsd.php index 34e1433..ec4dc55 100644 --- a/src/usr/local/www/diag_nanobsd.php +++ b/src/usr/local/www/diag_nanobsd.php @@ -168,7 +168,9 @@ $section->addInput(new Form_StaticText( if (is_writable("/")) { $refcount = refcount_read(1000); /* refcount_read returns -1 when shared memory section does not exist */ - if ($refcount == 1 || $refcount == -1) { + /* refcount can be zero here when the user has set nanobsd_force_rw */ + /* refcount 1 is normal, so only display the count for abnormal values */ + if ($refcount == 1 || $refcount == 0 || $refcount == -1) { $refdisplay = ""; } else { $refdisplay = " (Reference count " . $refcount . ")"; |